Syntax of dechex in PHP
string dechex(int decimal)
Converts decimal to a hexadecimal (base-16) representation of it. Up to a 32-bit number, or 2,147,483,647 decimal (0x7FFFFFFF hexadecimal), can be converted
Example of dechex in PHP
<?php
echo dechex(10) . "\n";
echo dechex(47);
?>
a 2f