I am trying to explode empty line.
Here is my string variable:
$string = '
Hello,
Just test lines
Second test lines
';
I want these results:
$OUTPUT[0]='HELLO,';
$OUTPUT[1]='Just test lines
Second test lines';
My code:
$a = explode("\n\n",$string);
print_r($a);
My field results:
Array ( [0] => Hello, Just test lines Second test lines )
\n?"\r\n\r\n"and see if that works.\r\n\r\ninstead of\n\n