I have a string that consists of several lines. I want to add each line as a value to an array, but what do i use as the delimiter?
Thanks for the help. This stupid little thing stumped me, and now my brain wont solve it for me.
You may try \n
Thanks for the reply, but that doesnt seem to do it.
On a Unix-generated file, it's \n. On Mac, it's \r. On Win32, it's \r\n.
$lines = explode("\n", $string);
a d a m
It worked perfectly. I dont know why it didnt seem to before, but its working great now. Thanks for taking the time to give me the code, I was able to patch aeromail's reply to email with it.
Thanks again