Home > PHP > Function > PCRE > preg_match_all()

preg_match_all()

preg_match_all - Perform a global regular expression match

Syntax

int preg_match_all ()

Arguments

-

Description

Searches subject for all matches to the regular expression given in pattern and puts them in matches in the order specified by flags.

Version

PHP 4, 5

Return value

Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.