Re: regex to change ' to ?

From: Date: Thu, 04 Mar 2004 15:40:51 +0000
Subject: Re: regex to change ' to ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179455@lists.php.net to get a copy of this message
Hello Adam, Thursday, March 4, 2004, 3:36:06 PM, you wrote: AW> What would be the PHP expression to change any and all ' to ? in a AW> variable? AW> I want to change any and all ' in $_POST[data] to ? $output_array = str_replace("'", "?", $_POST); Use this instead of a reg exp for such a simple task, it's quicker and will cope with the whole array in one command. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#179455) next »