PHP VERSION: 8.2.18

new_intlchar_class.php

<?php
// NOTE: the "intl" extension must be installed

printf('%x'IntlChar::CODEPOINT_MAX);
echo 
IntlChar::charName('@');
var_dump(IntlChar::ispunct('!'));

//The above example will output:
/*
10ffff
COMMERCIAL AT
bool(true)
*/

Output


10ffffCOMMERCIAL ATbool(true)
SOURCE CODE