|
globFind pathnames matching a pattern Description
arrayfalse glob(string
$pattern , int $flags = 0)
The glob function searches for all the pathnames
matching
The behavior on Unix systems and macOS is determined by the system's
implementation of glob(). On Windows, an implementation that conforms
to the POSIX 1003.2 definition for glob() is used, and it includes
an extension to handle the Parameters
Return Values
Returns an array containing the matched files/directories, an empty array
if no file matched or Examples
Example #1 Convenient way how glob can replace opendir and friends.
The above example will output something similar to: funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 Example #2 Example with a more complex pattern
The above example will output something similar to: path/docs/mailinglist-rules.md path/docs/README.md path/docs/release-process.md path/pear/install-pear.txt path/Zend/README.md Notes
See Also
|