Hi all,
I would like to split a string in substring using "\n" as delimiter-character. For some reason explode or strpos don't detect this character. How can i split on "\n"?
Thanks for the help, Martijn.
Use split("\n",$string) instead of explode
Mmmmh, explode("\n", $String) actually does return an array after all... Don't know what i did wrong, probably using "function" incorrectly.
for me, such things work:
$anarray = explode("\n", $astring);
mind the double quotes " (not ').
according to the manual, explode is 100% equivalent to split.