Gen. partnerAlgotech

PHP function fnmatch()

Match filename against a pattern

|
September 11, 2019

Availability in versions: PHP 4.3.0

Match filename against a pattern

Parameters

Parameter Data type Default value Note
$pattern string not The shell wildcard pattern.
$string string not
$flags int null The value of flags can be any combination of the following flags, joined with the binary OR (

Return values

bool

true if there is a match, false otherwise.

Other resources

Official fnmatch documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.