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

php如何遍历出24个小时

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:09:071418browse

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>
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