Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decimal to hexadecimal
<?php dechex(int $num): string
<?php         $chars = preg_split('//u', $emoji, null, PREG_SPLIT_NO_EMPTY);



        $codepoints = array_map(

            fn (string $code): string => dechex(mb_ord($code)),

            $chars

        );