David T-G wrote:

I need a true nl2br function to get rid of newlines; I am accepting a
changed ini file parameter but the newline kills me.

Try:
$text = preg_replace("/\r\n|\n|\r", '<br>', $text);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to