Skip to content

Instantly share code, notes, and snippets.

@erikfrerejean
Created August 2, 2013 07:28
Show Gist options
  • Save erikfrerejean/6138110 to your computer and use it in GitHub Desktop.
Save erikfrerejean/6138110 to your computer and use it in GitHub Desktop.
utf8 sort of ord replacement :).
<?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