本文实例讲述了thinkPHP中多维数组的遍历方法。分享给大家供大家参考,具体如下:
array(array('ch_name'=>'编程之家','en_name'=>'captopril'),array('ch_name'=>'脚本下载','en_name'=>'enalapril'),array('ch_name'=>'赖诺普利','en_name'=>'lisinopril')),'ARB'=>array(array('ch_name'=>'脚本源码','en_name'=>'eprosartan'),array('ch_name'=>'jb51','en_name'=>'candesartan'),array('ch_name'=>'','en_name'=>'losartan'),array('ch_name'=>'JS学习','en_name'=>'valsartan'),array('ch_name'=>'脚本教程','en_name'=>'irbesartan')),);
PHP;">
Box">
Box" name="{$k}" value="1">{$k}
Box inline drug">
Box" name="{$drug.en_name}" value="1">{$drug.ch_name}
原文链接:https://www.f2er.com/thinkphp/20525.html