Introduction
Preg_match_all helps find all parts of a text that match a pattern, not just the first one.
You want to find every email address in a long text.
You need to get all words that start with a capital letter.
You want to extract all numbers from a sentence.
You want to find all hashtags in a social media post.