Menu
I have string which looks like this: “<p>some text</p>another text”
I want split it to: “<p>some text</p>” and “another text”
When I try:
[code=php]
$string = “<p>some text</p>anothertext”;
$split = explode(“</p>”, $string);
echo $split[0];
echo $split[1];
I got “<p>some text” with missing “</p>” at the end. How can I fix it?