src/LdapTools/Utilities/MBString.php
public static function ord($string)
    {
        if (self::isMbstringLoaded()) {
            $result = unpack('N', mb_convert_encoding($string, 'UCS-4BE', 'UTF-8'));
            if (is_array($result) === true) {
                return $result[1];
            }
        }

        return ord($string);
    }
public static function ord($string)
    {
        if (self::isMbstringLoaded()) {
            $result = unpack('N', mb_convert_encoding($string, 'UCS-4BE', 'UTF-8'));
            if (is_array($result) === true) {
                return $result[1];
            }
        }

        return ord($string);
    }
public static function ord ( $ string ) { if ( self :: isMbstringLoaded ( ) ) { $ result = unpack ( 'N' , mb_convert_encoding ( $ string , 'UCS-4BE' , 'UTF-8' ) ) ; if ( is_array ( $ result ) === true ) { return $ result [ 1 ] ; } } return ord ( $ string ) ; }
Get the integer value of a specific character.

@param $string
@return int
Get the integer value of a specific character .