I want to do the following: Big chunk of text is stored in variable $a. Paragraph breaks are signalled by two line breaks.
I want to just extract the first paragraph (i.e., all the text up to the first set of two line breaks) from $a. How would I do this? I tried exploding $a into an array, then doing a while loop inside a for loop, but it was taking WAY too long to execute (it was timing out). Is there an easy way to do this that I'm just overlooking? Thanks, Steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php