It was hinted in a comment to an answer to this question that PHP can not reverse Unicode strings.
As for Unicode, it works in PHP because most app
Another method:
function mb_strrev($str, $enc = null) { if(is_null($enc)) $enc = mb_internal_encoding(); $str = mb_convert_encoding($str, 'UTF-16BE', $enc); return mb_convert_encoding(strrev($str), $enc, 'UTF-16LE'); }