Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

preg_match_all()

3 tags 1 category

preg_match_all() — Perform a global regular expression match.

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

After the first match is found, the subsequent searches are continued on from end of the last match.

Inputs: pattern: The pattern to search for, as a string. subject: The input string. matches: Array of all matches in multi-dimensional array ordered according to flags. PREG_UNMATCHED_AS_NULL: If this flag is passed, unmatched subpatterns are reported as null; otherwise they are reported as an empty string.

Returns: Returns the number of full pattern matches (which might be zero), or false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…