Created
August 2, 2013 07:28
-
-
Save erikfrerejean/6138110 to your computer and use it in GitHub Desktop.
utf8 sort of ord replacement :).
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 blgg_ord_helper($string) { | |
mb_internal_encoding("UTF-8"); | |
$char = mb_substr($string, 0, 1); | |
return hexdec(bin2hex($char)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment