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