phpday 2027 - Call for Papers

IntlChar::getUnicodeVersion

(PHP 7, PHP 8)

IntlChar::getUnicodeVersion — Get the Unicode version

Descrizione

public static function 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].

Elenco dei parametri

Questa funzione non ha parametri.

Valori restituiti

An array containing the Unicode version number.

Esempi

Example #1 Test di proprietà differenti

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

Il precedente esempio visualizzerà:

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

Vedere anche:

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top