Re: Function to strip returns
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Function to strip returns

From: ZeldorBlat <zeldorblat@gmail.com>
Date: Mon Oct 31 2005 - 01:49:10 CET

Sure, or just use:

$value = str_replace(array("\r", "\n", "\t"), '', $value);

It's probably a little bit faster than preg_replace().
Received on Mon Nov 21 02:53:16 2005