$option ) { if( is_array( $value ) ) { $selected = in_array( $opt_id, $value ) ? 'checked="checked"' : ''; } echo ''. $option .''; } endif; ?>