PHP IntlChar ()
PHP 7 through intl extension to support internationalization (i18n) and localization (l10n). This extension is only on the basis of the ICU library package, and provides the ICU libraries and similar methods and properties.
PHP 7 through new IntlChar class exposes the ICU Unicode character properties. The class itself defines a number of static methods for operating a multi-character set of unicode characters.
Examples
Examples
<? php
printf ( '% x', IntlChar :: CODEPOINT_MAX);
echo IntlChar :: charName ( '@' );
var_dump (IntlChar :: ispunct () ' !');
?>
printf ( '% x', IntlChar :: CODEPOINT_MAX);
echo IntlChar :: charName ( '@' );
var_dump (IntlChar :: ispunct () ' !');
?>
The above program execution output is:
10ffff COMMERCIAL AT bool(true)