I've tried:

$var = explode("\n",$string);

$var = explode("\r",$string);

and so far nothin'

but if i go

echo nl2br($string);

its broken on each nl

what am i missing?

    What symptom is telling you that doing the explode() on the newline is not working?

    (Remember: you will not see newline effects in HTML output unless the text is withing <pre> tags or a tag that you have styled with "white-space: pre;".)

      Write a Reply...