Tutorialspoint.dev

PHP | IntlChar getUnicodeVersion() Function

The IntlChar::getUnicodeVersion() function is an inbuilt function in PHP which is used to get the Unicode version. The Unicode standard version information is filled into an array. For example, Unicode version 2.2.1 is represented as an array with the values [2, 2, 1, 0].

Syntax:

array IntlChar::getUnicodeVersion ( void )

Parameters: This function does not accept any parameters.

Return Value: This function returns an array containing the Unicode version number.

Below programs illustrate the IntlChar::getUnicodeVersion() function in PHP:



Program:

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

/div>
Output:

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

Related Articles:

Reference: http://php.net/manual/en/intlchar.getunicodeversion.php



This article is attributed to GeeksforGeeks.org

You Might Also Like

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter