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

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

WBOY
Release: 2016-06-13 12:56:34
Original
1304 people have browsed it

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


------解决方案--------------------
str_pad
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template