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

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

WBOY
WBOYOriginal
2016-06-13 12:56:341309browse

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