Function __global->opendir

Definitions

sources_custom/phpstub.php

  • Open a directory for analysis.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

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 open
$context ?resource No No Null N/A N/A A stream context to attach to (null: no special context)

Returns

  • The directory handle (false: error)
  • Type: ~resource
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Open a directory for analysis.
 *
 * @param  PATH $path The path to the directory to open
 * @param  ?resource $context A stream context to attach to (null: no special context)
 * @return ~resource The directory handle (false: error)
 */

function opendir(string $path, $context = null)