0
我想$ cluster1中值增加了CHtml加入了CHtml :: activeDropDownList数组值:: activeDropDownList如何在Yii中
$cluster_name_models = new ClusterForm();
$records = $cluster_name_models->get_list('grade');
$cluster_details=$records['0']['grade'];
$cluster1=explode(';',$cluster_details);
$cluster1=Array ([0] => JMC [1] => MMC [2] => SMC);
我已经得到像$ cluster1 = Array([0] => JMC [1] => MMC [2] => SMC)的数组;后爆炸如何使它逗号分隔 – Shubhangi
如果爆炸,那么你不需要设置(你已经有一个数组)。 – scaisEdge