The glob() function returns an array of filenames or directories matching a specified pattern.This function returns an array of files/directories, or FALSE on failure.
array glob ( string $pattern [, int $flags = 0 ] )
The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells.
The above example will output something similar to:
funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820
Parameter | Description |
---|---|
pattern | Required. Specifies the pattern to search for |
flags | Optional. Specifies special settings. |
Possible values : - | |