src/Utils.php
public static function unicodeOrd($char) {
        if (mb_internal_encoding() != 'UCS-2LE') {
            $char = iconv(mb_internal_encoding(), 'UCS-2LE', $char);
        }

        $code = 0;
        for ($i = 0; $i < strlen($char); $i++) {
            $code += ord($char[$i]) * pow(256, $i);
        }

        return $code;
    }
public static function unicodeOrd($char) {
        if (mb_internal_encoding() != 'UCS-2LE') {
            $char = iconv(mb_internal_encoding(), 'UCS-2LE', $char);
        }

        $code = 0;
        for ($i = 0; $i < strlen($char); $i++) {
            $code += ord($char[$i]) * pow(256, $i);
        }

        return $code;
    }
Multibyte replacement for standard ord()

@param string $char Char.

@return int Code of given char.