← All docs
preg_match_all()
Performs a global regular expression match and returns the number of matches.
preg_match_all()
function preg_match_all(string $pattern, string $subject): int
Performs a global regular expression match and returns the number of matches.
Parameters:
$pattern(string)$subject(string)
Returns: int
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how preg_match_all is implemented in the compiler, see the internals page.