Convert decimal to hexadecimal in PHP
Description
The following code shows how to convert decimal to hexadecimal.
Example
//from w ww . ja v a2 s . c o m
<?php
echo dechex("30") . "<br>";
echo dechex("10") . "<br>";
echo dechex("2014") . "<br>";
echo dechex("70");
?>
The code above generates the following result.