hexdec() function converts hexadecimal to decimal.
Grammar
hexdec(hex_string)
echo hexdec('77'); //Output 119
echo "
";
echo hexdec(dechex(43)); //Output 43
echo "
";
echo hexdec('3a'); //Output 58
The dechex() function converts decimal to hexadecimal.
Grammar
dechex(dec_number)