<html> <head> <title>printf: %X</title> </head> <body> <?php $number = 543; printf("Hex (upper): %X<br>", $number ); ?> </body> </html>