Convert Decimal Number to Hexadecimal String using PHP

dechex function

<?php

$decimalNumber = 60;
$hexString = dechex($decimalNumber);

echo $hexString;

Leave a Comment

Cancel reply

Your email address will not be published.