Replcace Double Quotes

DescriptionPHP snippet by - 09/12/10

Was having trouble changing double in a string that came out of the wordpress options table, chaning the double quotes to single with str_replace was not working. You need to convert the quotes before changing them to single like in this snippet.

Tags ,

echo str_replace(""","'", htmlspecialchars ($string));
  • Share
Authored by: Adam J Nowak
http://hyperspatial.com

Comments and Feedback