Seperating first paragraph from others

Vmovvhuhpxvzg

New Member
Let's say, that I have the following source output:\[code\]<p>This is first paragraph</p><p>This is second paragraph</p><p>This is third paragraph</p>\[/code\]What I want to achieve is... I want to split them, first paragraph goes into one variable, others into other. Like:\[code\]$first = "<p>This is first paragraph</p>";$next = "<p>This is second paragraph</p><p>This is third paragraph</p>";\[/code\]Because those are generated by TinyMCE and user input, I can never know when user will add \[code\]<br />\[/code\] or other tags, which will cause TinyMCE to generate a new code-break \[code\]\r\n\[/code\]. Therefore, all the solutuons which split them by looking for \[code\]\r\n\[/code\] won't work this time.Any advice?
 
Top