PHP 8.3.4 Released!

IntlChar::getUnicodeVersion

(PHP 7, PHP 8)

IntlChar::getUnicodeVersionUnicode のバージョンを取得する

説明

public static IntlChar::getUnicodeVersion(): array

Unicode のバージョン情報を取得します。

バージョンの配列には、 ICU が現在使っている Unicode 標準のバージョン情報が入っています。 たとえば、Unicode version 3.1.1 は、 [3, 1, 1, 0] という配列で表現されます。

パラメータ

この関数にはパラメータはありません。

戻り値

Unicode のバージョン番号が入った配列を返します。

例1 さまざまなプロパティの例

<?php
var_dump
(IntlChar::getUnicodeVersion());
?>

上の例の出力は以下となります。

array(4) {
  [0]=>
  int(7)
  [1]=>
  int(0)
  [2]=>
  int(0)
  [3]=>
  int(0)
}

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top