Function

preg_match

Synopsis

preg_match(string, string, &$ref, mixed, mixed): mixed

Area
Runtime\PS\Compat\preg_matchareas

Description

preg_match fills $matches with the first match of $pattern in $subject and returns 1, 0 when there is no match, optionally starting at byte $offset; a pattern that does not compile, or an $offset outside $subject, returns false.

Usage

$value = preg_match($arguments);
$fn = preg_match(...);

See also