Definition: The Dechex () PHP Function is used to convert a decimal number into a hexadecimal number. It can be converted back again used the hexdec () function. The highest number that can be converted is 4294967295 which will return the hexadecimal ffffffff.
Also Known As: Hexadecimal
Examples:
1
3ee
ffffffff
d7d
<?phpThis returns the following:
echo(dechex(1) . "<br />");
echo(dechex(1006) . "<br />");
echo(dechex(4294967295) . "<br />");
echo(dechex(3453) . "<br />");
?>
1
3ee
ffffffff
d7d

