note 10372 deleted from function.str-replace by philip
| From: | philip@php.net | Date: | Mon, 04 Feb 2002 12:42:56 +0000 |
| Subject: | note 10372 deleted from function.str-replace by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26210@lists.php.net to get a copy of this message | ||
It should be noted if you want to remove line breaks you have to use "\r\n" because
"\n" isn't automatically expanded
ie
$Text = ("\r\n", "<br>", $Text);
behaves like $Text = nl2br($Text); except that it also removes the line breaks putting everything in
one line of text.. this could be useful for data-base like entries