public static function ordStr($string)
    {
        $codes = array();

        $encoding = mb_detect_encoding($string);
        $size = mb_strlen($string, $encoding);

        for ($i = 0; $i < $size; $i++) {
            $char = mb_substr($string, $i, 1, $encoding);
            $codes[] = static::ord($char);
        }

        return $codes;
    }
public static function ordStr($string)
    {
        $codes = array();

        $encoding = mb_detect_encoding($string);
        $size = mb_strlen($string, $encoding);

        for ($i = 0; $i < $size; $i++) {
            $char = mb_substr($string, $i, 1, $encoding);
            $codes[] = static::ord($char);
        }

        return $codes;
    }
public static function ordStr ( $ string ) { $ codes = array ( ) ; $ encoding = mb_detect_encoding ( $ string ) ; $ size = mb_strlen ( $ string , $ encoding ) ; for ( $ i = 0 ; $ i < $ size ; $ i ++ ) { $ char = mb_substr ( $ string , $ i , 1 , $ encoding ) ; $ codes [ ] = static :: ord ( $ char ) ; } return $ codes ; }
Get char codes from string

@param string $string The string for detect codes

@return array
Get char codes from string