Convert hexadecimal to decimal in PHP
Description
The following code shows how to convert hexadecimal to decimal.
Example
<?php/*from w w w .ja v a2 s.com*/
echo hexdec("1e") . "<br>";
echo hexdec("a") . "<br>";
echo hexdec("11ff") . "<br>";
echo hexdec("cceeff");
?>
The code above generates the following result.