PHP funkce fnmatch()
Dostupnost ve verzích: PHP 4.3.0
Match filename against a pattern
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$pattern |
string |
není | The shell wildcard pattern. |
$string |
string |
není | The tested string. This function is especially useful for filenames, but may also be used on regular strings. |
$flags |
int |
null | The value of flags can be any combination of the following flags, joined with the binary OR ( |
Návratové hodnoty
bool
true if there is a match, false otherwise.