Convert Hexadecimal String to Decimal Number using PHP

hexdec function

<?php

$hexString = '3c';
$decimalNumber = hexdec($hexString);

echo $decimalNumber;

Leave a Comment

Cancel reply

Your email address will not be published.