hex zu decP PHP

$hexadecimal = 'afc758';

$decimal = hexdec($hexadecimal);

echo $hexadecimal . ' -> decimal value is: ' . $decimal;
vmxes