I have a text file that contains paragraphs of text. I want to load it as a string in php, and then collect all the e-mail addresses within it as an array. However, how do
$lines = file('file.txt'); foreach ($lines as $line) { // ... }