here is the content inside a mysql table - column type text:
lorem ipsum
* * *
dolor sit
I got it using php as a string variable and want to explode it by two consecutive line ends
$arr = explode("\n\n", $str);
echo count($arr) // 3
Now, another row has the same content and echo count($arr)
gives 1
I suppose something is wrong with end of lines, but how can I check this and how to ensure that in the future all end of lines to be the same?