Lines Matching refs:sprintf
2 sprintf With signed integer
12 var_dump(sprintf("%%b = '%b'", $n)); // binary representation
13 var_dump(sprintf("%%c = '%c'", $c)); // print the ascii character, same as chr() function
14 var_dump(sprintf("%%d = '%d'", $n)); // standard integer representation
15 var_dump(sprintf("%%e = '%e'", $n)); // scientific notation
16 var_dump(sprintf("%%f = '%f'", $n)); // floating point representation
17 var_dump(sprintf("%%o = '%o'", $n)); // octal representation
18 var_dump(sprintf("%%s = '%s'", $n)); // string representation
19 var_dump(sprintf("%%x = '%x'", $n)); // hexadecimal representation (lower-case)
20 var_dump(sprintf("%%X = '%X'", $n)); // hexadecimal representation (upper-case)
22 var_dump(sprintf("%%+d = '%+d'", $n)); // sign specifier on a positive integer
23 var_dump(sprintf("%%+d = '%+d'", $u)); // sign specifier on a negative integer