Capture newline from a textarea input

Try nl2br() instead:

echo nl2br($str);

Leave a Comment