Demonstrating Some Type Specifiers
$number = 543;
printf("Decimal: %d
", $number );
printf("Binary: %b
", $number );
printf("Double: %f
", $number );
printf("Octal: %o
", $number );
printf("String: %s
", $number);
printf("Hex (lower): %x
", $number );
printf("Hex (upper): %X
", $number );
?>