Re: [PHP] replace ' with "

2004-02-11 Thread John Nichel
Diana Castillo wrote: How do I replace all single quotes with double quotes in a string for echoing it with the double quotes? By looking here... http://us4.php.net/str_replace -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] replace ' with "

2004-02-11 Thread Angelo Zanetti
str_replace(''',"'", $StringToReplace); should work -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] replace ' with " How do I replace all single quotes with double quotes in a string for e

Re: [PHP] replace ' with "

2004-02-11 Thread Stuart
Diana Castillo wrote: How do I replace all single quotes with double quotes in a string for echoing it with the double quotes? $text = str_replace("'", '"', $text); http://php.net/str_replace and please at least RTFM before posting here in future. -- Stuart -- PHP General Mailing List (http://ww