PHP Manual

PHP function fnmatch()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
203.

V jiných jazycích

Status:
All systems normal.
2025