Function __global->chmod

Definitions

sources_custom/phpstub.php

  • Changes file mode.Only can set the 'read only' flag on Windows.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filename PATH No No required parameter N/A N/A The file to change the mode of
$mode integer No No required parameter N/A N/A The mode (e.g. 0777).

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Changes file mode.Only can set the 'read only' flag on Windows.
 *
 * @param  PATH $filename The file to change the mode of
 * @param  integer $mode The mode (e.g. 0777).
 * @return boolean Success status
 */

function chmod(string $filename, int $mode) : bool