<?php
$n = 43951789;
$u = -43951789;
$c = 65; // ASCII 65 is 'A'
// notice the double %%, this prints a literal '%' character
printf("%%b = '%b'
", $n); // binary representation
printf("%%c = '%c'
", $c); // print the ascii character, same as chr() function
printf("%%d = '%d'
", $n); // standard integer representation
printf("%%e = '%e'
", $n); // scientific notation
printf("%%u = '%u'
", $n); // unsigned integer representation of a positive integer
printf("%%u = '%u'
", $u); // unsigned integer representation of a negative integer
printf("%%f = '%f'
", $n); // floating point representation
printf("%%o = '%o'
", $n); // octal representation
printf("%%s = '%s'
", $n); // string representation
printf("%%x = '%x'
", $n); // hexadecimal representation (lower-case)
printf("%%X = '%X'
", $n); // hexadecimal representation (upper-case)
printf("%%+d = '%+d'
", $n); // sign specifier on a positive integer
printf("%%+d = '%+d'
", $u); // sign specifier on a negative integer
?>