From: "M. Sokolewicz" <[EMAIL PROTECTED]>
1. nl2br($posteddata) - This converts all the \r\n's to <br>'s so that it comes out with the same carriage returns as the person who inputed it gave it
It doesn't change \r\n to <br>, it only changes \n to <br />
It doesn't change anything, actually. It just inserts the <br />.
<?php $str = "asdf\nasdf\nasdf\nasdf"; $n = nl2br($str); if(strstr($n,"\n")) { echo 'Newlines present'; } else { echo 'Newlines not present'; } ?>
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php