Easy Tutorial
❮ Func String Setlocale Filter Sanitize Magic Quotes ❯

PHP IntlChar()

PHP 7 New Features

PHP 7 supports internationalization (i18n) and localization (l10n) through the intl extension. This extension is a basic wrapper for the ICU library and provides methods and features similar to those in the ICU library.

PHP 7 introduces the new IntlChar class to expose Unicode character features from ICU. This class itself defines many static methods for manipulating Unicode characters across multiple character sets.

Example

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

The output of the above program is:

10ffff
COMMERCIAL AT
bool(true)

PHP 7 New Features

❮ Func String Setlocale Filter Sanitize Magic Quotes ❯