Logo

Math Functions

abs acos acosh asin asinh atan atan2 atanh base_convert bindec ceil cos cosh decbin dechex decoct deg2rad exp expm1 fdiv floor fmod hexdec hypot intdiv is_finite is_infinite is_nan log log10 log1p max min octdec pi pow rad2deg round sin sinh sqrt tan tanh

hexdec

Logo composer/composer composer/composer
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Hexadecimal to decimal
<?php hexdec(string $hex_string): int|float
<?php                         $l = strlen($match[1]);



                        if ($l % 2) {

                            $code = hexdec($match[2]);



                            if (0xD800 <= $code && 0xDFFF >= $code) {
src/Composer/Json/JsonFormatter.php