private static function utf8ToUnicode($str) {
    $new = array();
    $len = iconv_strlen($str);
    for ($n = 0; $n < $len; $n++) {
      $char = iconv_substr($str, $n, 1);
      $new[] = self::uniord($char);
    }
    return $new;
  }
private static function utf8ToUnicode($str) {
    $new = array();
    $len = iconv_strlen($str);
    for ($n = 0; $n < $len; $n++) {
      $char = iconv_substr($str, $n, 1);
      $new[] = self::uniord($char);
    }
    return $new;
  }
private static function utf8ToUnicode ( $ str ) { $ new = array ( ) ; $ len = iconv_strlen ( $ str ) ; for ( $ n = 0 ; $ n < $ len ; $ n ++ ) { $ char = iconv_substr ( $ str , $ n , 1 ) ; $ new [ ] = self :: uniord ( $ char ) ; } return $ new ; }
Takes an UTF-8 string and returns an array of integers representing the
Unicode characters.
Takes an UTF - 8 string and returns an array of integers representing the Unicode characters .