Changes

Jump to: navigation, search

Working with Strings and Text in PHP

3 bytes added, 14:16, 4 June 2007
PHP fprintf formatting specifiers
* '''+''' - Forces both + or - in front of numbers. By default, only negative numbers display their sign.
* ''''n ''' - Specifies what to use as padding (n). Used in conjunction with the width specifier and defaults to space. Eg: %'_20s specified that '_' should be used as padding)
* '''-''' Left-justifies the value

Navigation menu