Search specified directory to find matches for specified pattern
public glob ( string $pattern, string $dirpath, string $pattern_type = 'php' ) : array | ||
$pattern | string | a string containing the pattern to search the directory for. |
$dirpath | string | a string containing the directory path to search. |
$pattern_type | string | a string containing the type of pattern matching functions to use (can either be 'php', 'perl' or 'shell'). |
return | array | containing all of the files and directories matching the pattern or null if no matches |