Generates a drop down list.
public static dropDownList ( string $name, string $select, array $data, array $htmlOptions = [] ) : string | ||
$name | string | the input name. |
$select | string | the selected value. |
$data | array | data for generating the list options (value=>display). |
$htmlOptions | array | |
return | string | the generated drop down list. |