function phutil_utf8_strtr($str, $map)libphutil Technical Documentation (Core Utilities)
function phutil_utf8_strtr($str, $map)
libphutil Technical Documentation (Core Utilities)
Replace characters in a string in a UTF-aware way. Similar to strtr().
Parameters
string | $str | UTF-8 input string. |
map<string, | $map | string> Map of characters to replace. |
Return
string | Input with translated characters. |
- Defined
- src/utils/utf8.php:836