标签:
$xiangmu=‘1,2,3‘;
$xiangmu=explode(‘,‘,$jc[‘xiangmu‘]); $xm=‘‘; foreach($xiangmu as $k=>$v){ //$k是计次循环变量;$v=$xiangmu[$k]; $xm[$k]=M(‘Member_card_city‘)->where(array(‘id‘=>$v))->find(); } $this->assign(‘xm‘,$xm);
标签:
原文地址:http://www.cnblogs.com/lvchenfeng/p/4925020.html