vipsa Posted January 23, 2014 Share Posted January 23, 2014 I would like to know why the following $myString = “Here’s a little string”; // Displays “Here-s+a+little+string” echo strtr( $myString, “ ‘”, “+-” ) . “ < br/ > ”; is printing this Here’s+a+little+string instead of this Here-s+a+little+string Link to comment https://forums.phpfreaks.com/topic/285605-printing-funny-symbols/ Share on other sites More sharing options...
requinix Posted January 23, 2014 Share Posted January 23, 2014 That's not your actual code. I say this because what you've posted is not valid PHP code. Can you please copy and paste your exact code? Link to comment https://forums.phpfreaks.com/topic/285605-printing-funny-symbols/#findComment-1466257 Share on other sites More sharing options...
Barand Posted January 23, 2014 Share Posted January 23, 2014 And use an editor that uses the correct " and ' characters instead of smartquotes Link to comment https://forums.phpfreaks.com/topic/285605-printing-funny-symbols/#findComment-1466267 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.