I am using the snoopy class to retrieve the text from a remote page. After I do this I use a function that I found on php.net called get_between() which allows me to store a string that exists inbetween 2 strings in a variable.
I need to store each line of text in an array. If I do the following then each line of text as the text appeared on the HTML page is output to the browser.
echo htmlspecialchars($text);
here is an example of what gets output to the browser by the above code.
205 Found - 06/12/2007 Southern California A.A. - TRA & CLOSED SUBARU
13 Found - 06/13/2007 Aloha AA - HAWAII Wednesday Sale
Is there a PHP function or does anyone have any code that will store each line in an array? Keep in mind that as the information is stored in the $text variable it is one continuous string and is not on separate lines.
Greg