判断是否选择专家&&专家是否回复

foreach ( $list as &$val ) {
if ( !$val['expert_id'] || empty( $val['expert_id'] ) || $val['expert_id'] == 0 ) {
$val['expert_type'] = '否';
} else {
$val['expert_type'] = '是';
}
$val['is_reply'] = $val['is_reply'] == 1?'否':'是';
}

你可能感兴趣的:(判断是否选择专家&&专家是否回复)