Learn PHP 7

PHP 7 IntlChar

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.

Example

<?php
printf('%x', IntlChar::CODEPOINT_MAX);
print (IntlChar::charName('@'));
print(IntlChar::ispunct('!'));
?>

OutPut

10ffff COMMERCIAL AT true