猿问

thinkphp的循环问题

我想取到

https://img.mukewang.com/5c0a2d84000101b102500044.jpg

这个time,不知道该什么循环出来,大神们帮帮忙谢谢

扬帆大鱼
浏览 491回答 1
1回答

慕的地6264312

<?phpforeach($result['result']['list'] as $item){&nbsp; &nbsp; &nbsp; &nbsp;foreach($item as $value)&nbsp; &nbsp; &nbsp; &nbsp;{&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($value['tr'] as $row){&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //这里就可以拿到time&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $row['time']&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp;}&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答