note 30668 deleted from function.chop by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 01:06:22 +0000 |
| Subject: | note 30668 deleted from function.chop by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48311@lists.php.net to get a copy of this message | ||
Note Submitter: ctech@mountainparkcs.com
----
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);
}