Contact: aviboots(AT)netvision.net.il
40,026 questions
51,982 answers
573 users
printf('The hex value of %d is %X', 1340, 1340); /* run: The hex value of 1340 is 53C */
$decimal = 255; $hex = sprintf("%X", $decimal); echo "The hexadecimal value of $decimal is $hex"; /* run: The hexadecimal value of 255 is FF */