Introduction:
I was having a problem trying to split a string of multiple
lines from an online form using the flowing code:
<?php
$arry_names = split("n", $names);
?>
This was producing an unexpected line break. I searched
the web to see if anyone had the same problem and found
that I needed to check for "returns" (r) also.
So now when I'm splitting data by lines, I use the following
code:
<?php
$arry_names = split("[n|r]", $names);
?>
NewSourceMedia is providing links to these listings as
a courtesy, and makes no representations regarding the content or
any information related thereto. Any questions, complaints or claims
regarding the downloaded content or details must be directed to the appropriate
publisher. We do not encourage or condone the use of any
software in violation of applicable laws.