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());
?>
|
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
Last Updated :
27 Aug, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...