Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - 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. -
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.

Please refer to the php manual for details.