Function __global->mkdir

Definitions

sources_custom/phpstub.php

  • {{creates-file}}}}
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool
  • Flags:

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$path PATH No No required parameter N/A N/A The path to the directory to make
$mode integer No No required parameter N/A N/A The mode (e.g. 0777).
$recursive boolean No No False N/A N/A Whether to do recursively
$context ?resource No No Null N/A N/A A stream context to attach to (null: no special context)

Returns

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

Preview

Code (PHP)

/**
 * {{creates-file}}}}
 *
 * @param  PATH $path The path to the directory to make
 * @param  integer $mode The mode (e.g. 0777).
 * @param  boolean $recursive Whether to do recursively
 * @param  ?resource $context A stream context to attach to (null: no special context)
 * @return boolean Success status
 */

function mkdir(string $path, int $mode, bool $recursive = false, $context = null) : bool