function my_selects_name($value, $param = [], $data = [], $field = []) {
if (dr_is_empty($value)) {
return '';
}
$rt=[];
if ($field) {
$options = dr_format_option_array($field['setting']['option']['options']);
foreach ($value as $id){
if(isset($options[$id])){
$rt[]=$options[$id];
}else{
$rt[]=$id;
}
}
}
return implode(',', $rt);
}
相关文章