note 26072 added to function.str-replace

From: Date: Thu, 17 Oct 2002 00:12:59 +0000
Subject: note 26072 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-38188@lists.php.net to get a copy of this message
Keep in mind that if you are trying to remove all the newlines (\n) from a fields that was submitted in a form, you may need look for \r\n instead: If this doesn't work: $text=str_replace ("\n", " ", $text); then try this: $text=str_replace ("\r\n", " ", $text); -- http://www.php.net/manual/en/function.str-replace.php http://master.php.net/manage/user-notes.php?action=edit+26072 http://master.php.net/manage/user-notes.php?action=delete+26072 http://master.php.net/manage/user-notes.php?action=reject+26072

« previous php.notes (#38188) next »