strtr is a php function that translates characters in a string, either by using an additional "to" and "from" translation string, or a single to=>from key=>value array.
I'm having a hard time understanding when strtr would be preferable to str_replace or vice versa. It seems that …
php string str-replace strtrRight now I am using this function for emoticons: function emoticons($text) { $icons = array( ':)' => '<img …
php emoticons strtr