## Example

`

     array glob ( string $pattern [, int $flags = 0 ] )

`

## Description

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.

## Return Values

Returns an array containing the matched files/directories, an empty array if no file matched or FALSE on error. Note: On some systems it is impossible to distinguish between empty match and an error.