Re: preg_replace single quote

From: Date: Wed, 03 Aug 2005 18:29:04 +0000
Subject: Re: preg_replace single quote
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219937@lists.php.net to get a copy of this message
Paul Nowosielski wrote:
Hi All, I'm trying to strip single quotes using preg_replace() with no luck. Can someone give me some advice on achieving this? TIA! $string = preg_replace('/\'/', '', $string);
should work fine Kind regards, Thomas Obermüller

« previous php.general (#219937) next »