btcq.net
当前位置:首页 >> 怎么ECho多维数组 >>

怎么ECho多维数组

foreach ($result as $key=>$value){ if(is_array($value)){ foreach($value as $ val) { echo $val . ""; } } echo $value . ""; }

比如$res 为一个二位数组,循环如下: $res = array(array('a' => 1, 'b' => 2),array('aa' => 11, 'bb' => 22),array('aaa' => 111, 'bbb' => 222));echo "";foreach ($res as $key => $value) {echo "";foreach ($value as $k => $v) {// 处理...

网站首页 | 网站地图
All rights reserved Powered by www.btcq.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com