fnmatch

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
fnmatch - Match filename against a pattern
Manual
Code Examples

Example #1 Checking a color name against a shell wildcard pattern

PHP Version: