Name
fnmatch
Synopsis
bool 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
|
| Slash characters in
|
| A period at the
beginning of the string, or before any slash if |
| Ignore case when
matching |
Get Programming PHP, 3rd 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.