Home > Article > Backend Development > How to automatically complete the number of digits in a number or string in php
sprintf() function Does it feel like C language? 1. Grammar sprintf(format,arg1,arg2,arg++) Parameter Description format required. Convert format. arg1 required. Specifies the parameters to be inserted at the first % sign in the format string. arg2 optional. Specifies the parameter to be inserted into the format string at the second % sign. arg++ Optional. Specifies the parameters to be inserted into the format string at the third, fourth, etc. % symbols. 2, Description (edited and organized by bbs.it-home.org Script School)
3, Format number number_format()
|