Last active
December 23, 2016 15:16
-
-
Save tieutantan/9fbe09c644c6230c27f2 to your computer and use it in GitHub Desktop.
convert unicode string to reverse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function utf8_string_reverse($string){ | |
preg_match_all('/./us', $string, $array); | |
return implode('',array_reverse($array[0])); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment