略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: IntlChar::getUnicodeVersion

2024-12-22

IntlChar::getUnicodeVersion

(PHP 7, PHP 8)

IntlChar::getUnicodeVersionGet the Unicode version

说明

public static IntlChar::getUnicodeVersion(): array

Gets the Unicode version information.

The version array is filled in with the version information for the Unicode standard that is currently used by ICU. For example, Unicode version 3.1.1 is represented as an array with the values [3, 1, 1, 0].

参数

此函数没有参数。

返回值

An array containing the Unicode version number.

范例

示例 #1 Testing different properties

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

以上例程会输出:

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

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/intlchar.getunicodeversion.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3