fnmatch

 bool fnmatch ( string $pattern , string $string [, int $flags = 0 ] ) 

説明

fnmatch() checks if the passed string would match the given shell wildcard pattern.

戻り値

Returns TRUE if there is a match, FALSE otherwise.