Re: New Member: PHP 4 bug?

From: Date: Tue, 12 Sep 2000 10:04:03 +0000
Subject: Re: New Member: PHP 4 bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16318@lists.php.net to get a copy of this message
Hi Ernst! On Tue, 12 Sep 2000, Ernst de Moor wrote: > > I developed a small program that works fine at the development server, but not at the > production server. Specifically the statement: > ereg_replace("\W", "_", $id); seems to be not processed at all (meaning: > replace all non alphanumeric characters by an underscore). > Other ereg_replace calls are processed correctly on both servers. is ereg_replace() acting global by default? try preg_replace ('/\W/g','_',$id). -- teodor

« previous php.general (#16318) next »