[PHP] Getting substring of text for first paragraph

2002-05-12 Thread Steven Jarvis
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,

Re: [PHP] Getting substring of text for first paragraph

2002-05-12 Thread Miguel Cruz
On Sun, 12 May 2002, Steven Jarvis wrote: I want to do the following: Big chunk of text is stored in variable $a. Paragraph breaks are signalled by two line breaks. How big is big? 100 lines? 10,000 lines? 1,000,000 lines? I want to just extract the first paragraph (i.e., all the text up