private static function unistr2ords($str) {
    $ords = array();
    $len = iconv_strlen($str);
    for($i = 0; $i < $len; $i++) {
      $char = iconv_substr($str, $i, 1);
      $val = self::utf8ToUnicode($char);
      if ($val !== false && array_key_exists(0, $val)) {
        $ords[] = $val[0];
      }
    }
    return $ords;
  }
private static function unistr2ords($str) {
    $ords = array();
    $len = iconv_strlen($str);
    for($i = 0; $i < $len; $i++) {
      $char = iconv_substr($str, $i, 1);
      $val = self::utf8ToUnicode($char);
      if ($val !== false && array_key_exists(0, $val)) {
        $ords[] = $val[0];
      }
    }
    return $ords;
  }
private static function unistr2ords ( $ str ) { $ ords = array ( ) ; $ len = iconv_strlen ( $ str ) ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) { $ char = iconv_substr ( $ str , $ i , 1 ) ; $ val = self :: utf8ToUnicode ( $ char ) ; if ( $ val !== false && array_key_exists ( 0 , $ val ) ) { $ ords [ ] = $ val [ 0 ] ; } } return $ ords ; }
Turns a string of utf-8 characters into an array of ordinal values.
Turns a string of utf - 8 characters into an array of ordinal values .