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://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to