string_format
This is a way to format strings, such as decimal numbers and such. Use
the syntax for sprintf()
for the
formatting.
Basic usage
Parameters
Parameter Position | Type | Required | Description |
---|---|---|---|
1 | string | Yes | This is what format to use. (sprintf) |
Examples
Where template is:
Will output:
See also date_format
.