Hi I have a variable for content of a website i have and i want to break up the text into paragraphys in an array.
So I have
$content = '<p>text 1</p><p>text 2</p><p>text 3</p>';
and i want this
$contentArray = array(1=>'<p>text 1</p>', 2=> '<p>text 2</p>', 3=><p>text 3</p>);
I guess the best way it to explode the text but not sure what to explode it around?
thanks in advance for any help
So I have
$content = '<p>text 1</p><p>text 2</p><p>text 3</p>';
and i want this
$contentArray = array(1=>'<p>text 1</p>', 2=> '<p>text 2</p>', 3=><p>text 3</p>);
I guess the best way it to explode the text but not sure what to explode it around?
thanks in advance for any help