array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'intlchar.getunicodeversion.php', 1 => 'IntlChar::getUnicodeVersion', ), 'up' => array ( 0 => 'class.intlchar.php', 1 => 'IntlChar', ), 'prev' => array ( 0 => 'intlchar.getpropertyvaluename.php', 1 => 'IntlChar::getPropertyValueName', ), 'next' => array ( 0 => 'intlchar.hasbinaryproperty.php', 1 => 'IntlChar::hasBinaryProperty', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/intl/intlchar/getunicodeversion.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7, PHP 8)
IntlChar::getUnicodeVersion — Unicode のバージョンを取得する
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) }