Home  >  Article  >  Backend Development  >  php如何把1显示成01的格式

php如何把1显示成01的格式

WBOY
WBOYOriginal
2016-06-13 11:10:472119browse

php怎么把1显示成01的格式
那个函数是什么?记不清楚了。
1-60的数字循环,但是希望是01-60这样的格式


------解决方案--------------------
str_pad
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn