![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Function to strip returns
From: Ewoud Dronkert <firstname@lastname.net.invalid>
Date: Mon Oct 31 2005 - 09:41:59 CET
JackM wrote:
That is not a pattern, it needs pattern delimiters at the start and end.
$value = preg_replace('/[\r\n\t]+/', '', $value);
-- E. DronkertReceived on Mon Nov 21 02:53:23 2005 |