The fnmatch() function matches a filename or string against the specified pattern.
bool fnmatch ( string $pattern , string $string [, int $flags = 0 ] )
fnmatch() checks if the passed string would match the given shell wildcard pattern.
Parameter | Description |
---|---|
pattern | Required. Specifies the pattern to search for |
string | Required. Specifies the string or file check |
flags | Optional. |
This function is not implemented on Windows platforms.