note 30668 added to function.chop
| From: | ctech at mountainparkcs dot com | Date: | Tue, 25 Mar 2003 12:26:07 +0000 |
| Subject: | note 30668 added to function.chop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45791@lists.php.net to get a copy of this message | ||
I tried the method above for removing the new but it didn't work in my script. I did find one
that did work.
function chop_newline($str)
{
return preg_replace("(\r\n|\n|\r)", "", $str);
}
--
http://www.php.net/manual/en/function.chop.php
http://master.php.net/manage/user-notes.php?action=edit+30668
http://master.php.net/manage/user-notes.php?action=delete+30668
http://master.php.net/manage/user-notes.php?action=reject+30668