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:

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


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

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.