\n\n- these are literally these characters, not line breaks. Make sure you use single quotes around the string in explode:
$parts = explode('\n\n', $text);
If you decide to use double quotes, you will have to avoid characters \, for example:
$parts = explode("\\n\\n", $text);
On the other hand: why do you extract data in two different formats? Why not just go to JSON or just XML?
source
share