Function __global->glob

Definitions

sources_custom/phpstub.php

  • Find pathnames matching a pattern.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$pattern string No No required parameter N/A N/A Pattern according to the rules used by the libc glob
$flags integer No No 0 N/A N/A Flags

Returns

  • Files found (false: error)
  • Type: ~array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find pathnames matching a pattern.
 *
 * @param  string $pattern Pattern according to the rules used by the libc glob
 * @param  integer $flags Flags
 * @return ~array Files found (false: error)
 */

function glob(string $pattern, int $flags = 0)