I've stored some values in my database which have linebreaks.
Wanting to transform those contents into an array, I did it like this:
$arr = explode($rs[data],"
");
Unfortunately this doesn't work. Any ideas as to what's wrong?
I've stored some values in my database which have linebreaks.
Wanting to transform those contents into an array, I did it like this:
$arr = explode($rs[data],"
");
Unfortunately this doesn't work. Any ideas as to what's wrong?
The parameters of your explode()
call are inverted :
So, you should use :
$arr = explode("
", $rs[data]);