Skip to content
Related Articles

Related Articles

PHP | IntlChar getUnicodeVersion() Function

View Discussion
Improve Article
Save Article
  • Last Updated : 27 Aug, 2019
View Discussion
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!