'form-control', 'default' => 1 ); // Generate the select form field $select_field = addSelectFromReference2($table, $value_field, $label_field, $options); // Output the form field echo $select_field; ?>This example is similar to the previous one, but adds additional options to the select field, such as a CSS class and a default option with the value of 1.