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); }