Exercise

Use regular expressions to extract email addresses from a file. Add them to an array and output the result to the browser. Refine your regular expression across a number of files.

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.