jasonc Posted September 1, 2009 Share Posted September 1, 2009 how do i change all " to the slanted version that are in a string Quote Link to comment https://forums.phpfreaks.com/topic/172746-how-do-i-change-all-to-the-slanted-version/ Share on other sites More sharing options...
dezkit Posted September 8, 2009 Share Posted September 8, 2009 str_replace('“','"',$hello) Quote Link to comment https://forums.phpfreaks.com/topic/172746-how-do-i-change-all-to-the-slanted-version/#findComment-914574 Share on other sites More sharing options...
Mark Baker Posted September 8, 2009 Share Posted September 8, 2009 I suspect the OP is after "smart quotes" rather than backticks. Quote Link to comment https://forums.phpfreaks.com/topic/172746-how-do-i-change-all-to-the-slanted-version/#findComment-914575 Share on other sites More sharing options...
Zane Posted September 8, 2009 Share Posted September 8, 2009 Google It for him at least -> http://shiflett.org/blog/2005/oct/convert-smart-quotes-with-php Quote Link to comment https://forums.phpfreaks.com/topic/172746-how-do-i-change-all-to-the-slanted-version/#findComment-914619 Share on other sites More sharing options...
kumarkiranm Posted September 8, 2009 Share Posted September 8, 2009 try this echo htmlentities($str, ENT_QUOTES); ENT_COMPAT : Will convert double-quotes and leave single-quotes alone. ENT_QUOTES : Will convert both double and single quotes. ENT_NOQUOTES : Will leave both double and single quotes unconverted. Quote Link to comment https://forums.phpfreaks.com/topic/172746-how-do-i-change-all-to-the-slanted-version/#findComment-914807 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.