Open In App

PHP | IntlChar getUnicodeVersion() Function

Last Updated : 27 Aug, 2019
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

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());
?>


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



Next Article

Similar Reads

three90RightbarBannerImg