Hi
I have the following text:
$t = "hello world
this is another sentence";
I would like to split it into two parts, one for each line.
I tried: $lines = explode('\n', $t);
but when I did the following:
echo count($lines);
I got: 1 and not 2
what could be the problem?
should the split be around '\n', '\n\r' ?
thanks