HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Checking a color name against a shell wildcard pattern
The fnmatch() function checks if a string or filename matches the given shell wildcard pattern.
Parameter | Description |
---|---|
pattern | Required. Specifies the shell wildcard pattern |
string | Required. Specifies the string or file to check |
flags | Optional. Can be one or a combination of the following:
|
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.3+ |
PHP Changelog: | PHP 5.3: Now available on Windows platforms |
❮ PHP Filesystem Reference