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
To define Array constants we used define() In PHP 7.In PHP 5.6, they could only be defined with const.
Closure::call() method is added in PHP 7.It is shorthand way to temporarily bind an object scope to a closure and invoke it.
Anonymous Classes is added in PHP 7.Anonymous classes are defined without any name.we can define an anonymous class using keyword "new class".