Reputation:
We have rows:
1 test1
<br>
2 test2
<br>
3 test3
<br>
4 test4
For explode in array we test next:
$ArrText = explode("\n",$text);
$ArrText = explode("<br>",$text);
But it not worked.
Tell me please how to split a string into array elements ?
Upvotes: 0
Views: 71
Reputation: 219804
$ArrText = explode("\n<br>\n",$text);
Two things:
<br>
followed by a new lineUpvotes: 5