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
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
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
3 matches
Mail list logo