Home > Backend Development > PHP Tutorial > php如何遍历出24个小时

php如何遍历出24个小时

WBOY
Release: 2016-06-06 20:09:07
Original
1376 people have browsed it

php如何遍历出24个小时

我要添加23个小时的数据 如何用php添加 其他时间的 默认为0 如果
【10:00】=》array
(
[time]=>10
['good_amout']=>3
)

回复内容:

php如何遍历出24个小时

我要添加23个小时的数据 如何用php添加 其他时间的 默认为0 如果
【10:00】=》array
(
[time]=>10
['good_amout']=>3
)

<code class="php">$Time_arr = [];
for($i=0;$i $key,
        'good_amout' => 0
    ];
}</code>
Copy after login
Related labels:
php
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