Re: preg_replace();

From: Date: Fri, 02 Feb 2007 21:32:06 +0000
Subject: Re: preg_replace();
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-248210@lists.php.net to get a copy of this message
On Fri, Feb 02, 2007 at 09:01:38PM +0100, Steffen Ebermann wrote: > > $new = preg_replace("!\|| !", "_", $old); Heyha, the mail's subject gone obsolete. preg_replace isn't necessary at all. Better use: $new = str_replace(array ("|"," "), "_", $old);

« previous php.general (#248210) next »