Mega Code Archive

 
Categories / Php / Functions
 

Printf() Type Specifiers

Option     Value   %          A literal percent characters (takes no parameters)   b          Integer represented as a binary number (for example: 101110111)   c          Integer represented as the character corresponding to its ASCII value   d          Integer represented as a signed integer number   u          Integer represented as an unsigned number   f          Floating-point value   o          Integer represented as an octal value   s          String value   x          Integer value represented in hexadecimal notation (with lowercase characters)   X          Integer value represented in hexadecimal notation (with uppercase characters)