vipsa Posted January 23, 2014 Share Posted January 23, 2014 (edited) 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 Edited January 23, 2014 by vipsa Quote 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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/285605-printing-funny-symbols/#findComment-1466267 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.