foreach($gid_list as $k=>$v){ $gid_array[] = $v['gid']; } if(count($gid_array)<2){ $gid_str = $gid_array['0']; }else{ $gid_str = implode(',',$gid_array); }
foreach($gid_list as $k=>$v){ $gid_array[] = $v['gid']; } if(count($gid_array)<2){ $gid_str = $gid_array['0']; }else{ $gid_str = implode(',',$gid_array); }
转载于:https://www.cnblogs.com/shaoing/p/8795833.html