MirageLab :: Conversion Specification Type Codes

FAQs

PHP
Browse in : All > FAQs > PHP
Conversion Specification Type Codes


The following designations are used inside of PRINTF and SPRINTF to indicate the format of the variable displayed:
  • b - translate an integer into a binary value
  • c - translate an integer as a character value
  • d - translate an integer as a decimal number
  • f - translate a double as a floating point number
  • o - translate an integer as an octal value
  • s - translate a string directly
  • x - translate an integer as a hex value (lower case)
  • X - translate an integer as a hex value (upper case)

  • < prev     next >

    Options:
    View Article Map