dechex

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decimal to hexadecimal
<?php dechex(int $num): string
<?php         $identifier = new Identifier($identifier);



        return strtoupper(dechex(crc32($identifier->getName())));

    }



    protected function getCommentOnTableSQL(string $tableName, ?string $comment): string
<?php     protected function _generateIdentifierName($columnNames, $prefix = '', $maxSize = 30)

    {

        $hash = implode('', array_map(static function ($column): string {

            return dechex(crc32($column));

        }, $columnNames));



        return strtoupper(substr($prefix . '_' . $hash, 0, $maxSize));
<?php         $chars = preg_split('//u', $emoji, null, PREG_SPLIT_NO_EMPTY);



        $codepoints = array_map(

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

            $chars

        );
<?php                     $safe .= '&#'.ord($letter).';';

                    break;

                case 2:

                    $safe .= '&#x'.dechex(ord($letter)).';';

                    break;

                case 3:

                    $safe .= $letter;