IntlChar Class is added in PHP 7.which seeks to expose additional ICU functionality.IntlChar Class give access to a number of static methods and constants that can be used to access information about Unicode characters.
Note:In Order to use this class, You need to install Intl extension.
<?php printf('%x', IntlChar::CODEPOINT_MAX); print (IntlChar::charName('@')); print(IntlChar::ispunct('!')); ?>
10ffff COMMERCIAL AT true
n Older PHP version (PHP 5 >= 5.3.0), if we want to import Classes,constants and functions from the same namespace then we have to use the "use" statement multiple times.
To define Array constants we used define() In PHP 7.In PHP 5.6, they could only be defined with const.
Null coalescing operator (??) has been introduced in PHP 7.This is replacement of ternary operator in conjunction with isset() function.