{"2":[[[["16","23:00"]],["18","22:00"]]],"1":[["20","20:00"]]}
我需要像这样动态打印值:
<p> 2 </p>
<ul>
<li>16 ---- 23:00 </li>
<li>18 ---- 22:00 </li>
</ul>
<p> 1 </p>
<ul>
<li>20 --- 20:00</li>
</ul>
是函数json_decode()返回的数组数据;我怎样才能像上面的例子一样打印它......谢谢。我知道我需要使用循环,但是,谁能帮我构建它?
Array
(
[2] => Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
(
[0] => 16
[1] => 23:00
)
)
[1] => Array
(
[0] => 18
[1] => 22:00
)
)
)
[1] => Array
(
[0] => Array
(
[0] => 20
[1] => 20:00
)
)
)
问题,当我需要查看值时显示数组,返回一些像这样:
Array
(
[1] => Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
(
[0] => 14
[1] => 23:00
)
)
[1] => Array
(
[0] => 19
[1] => 21:00
)
)
)
[2] => Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
(
[0] => 15
[1] => 23:00
)
)
[1] => Array
(
[0] => 17
[1] => 20:00
)
)
)
)
1
Array----
19----21:00
2
Array----
17----20:00