How does php convert a one-bit integer into a multi-bit integer? For example, 1 is converted to 00 1. You can't use that function to splice characters. -
Returns a formatted string.
String sprintf (string format [,mixed parameter [,mixed ...]])
For example: echo sprintf("%03d ",1), output 00 1.