jasonc Posted September 1, 2009 Share Posted September 1, 2009 how do i change all " to the slanted version that are in a string 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) 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. 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 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. 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
Archived
This topic is now archived and is closed to further replies.