Easy Tutorial
❮ Filter Sanitize Stripped Func Mysqli Refresh ❯

PHP fnmatch() Function



Definition and Usage

The fnmatch() function matches filenames or strings against a specified pattern.

Syntax

Parameter Description
pattern Required. Specifies the pattern to search for.
string Required. Specifies the string or file to check.
flags Optional.

Tips and Notes

Note: This function is not available on Windows platforms.


Example

Check color names against shell wildcard patterns:


❮ Filter Sanitize Stripped Func Mysqli Refresh ❯