Converting Hexadecimal(16) to Decimal(10)
The Hexadecimal system work in base 16 which means that we have 15 (fifteen) numbers as shown bellow. HEX Value 0 0 1 1 2 2 3 3 4 4 0 0 0 0 5 5 6 6 7 7 8 8 9 9 A 10 B 11 C 12 D 13 E 14 F 15 PHP and Hex In the table above we have 16 numbers and its corresponding values, the highest is 15 and the lowest is 0. Knowing this rule what will the code bellow will output? <?php echo 0xFF; The right answer is 255! When I...