note 10926 deleted from function.str-replace by philip

From: Date: Mon, 04 Feb 2002 13:43:06 +0000
Subject: note 10926 deleted from function.str-replace by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26233@lists.php.net to get a copy of this message
When trying to strip newlines out of a mySQL string you should use: $text = str_replace(chr(13), "<br>", $text) to make it nice and HTML friendly

« previous php.notes (#26233) next »