Name
fnmatch
Synopsis
int fnmatch(stringpattern
, stringstring
[, intflags
])
Returns true
if
string
matches the shell wildcard pattern
given in pattern
. See
glob for the pattern matching rules. The flags
value is a bitwise OR of any of the following values:
| Treat backslashes in pattern as backslashes, rather than as the start of an escape sequence. |
| Slash characters in string must be matched explicitly by slashes in pattern. |
| A period at the beginning of the
string, or before any slash if |
| Ignore anything after a “/*” if the pattern matches up to that point. |
| Ignore case when matching string to pattern. |
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.