PHP » PYTHON |
login |
register |
about
|
import fnmatch fnmatch.fnmatch(filename, pattern) fnmatch(PHP 4 >= 4.3.0, PHP 5) fnmatch — Match filename against a pattern Description
bool fnmatch
( string $pattern
, string $string
[, int $flags= 0
] )
fnmatch() checks if the passed string would match the given shell wildcard pattern . Parameters
Return ValuesReturns TRUE if there is a match, FALSE otherwise. Changelog
Examples
Example #1 Checking a color name against a shell wildcard pattern
<?php
NotesWarning
For now this function is not available on non-POSIX compliant systems. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|