← 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
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/regex/preg_match_all.rs).
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.