Php program to print the number using dechex

A Php program to print the number using dechex. In this we can convert the number into decimal number to string in php. The dechex() function is a PHP built-in function that converts a decimal value to an equivalent hexadecimal number. The greatest number that can be converted to decimal is 4294967295, which equals “fffffff”.

<?php 
echo (dechex(20)."<br/>");
echo (dechex(5)."<br/>");
echo (dechex(100)."<br/>");
?>

 

Output:

14

5

64