for my drop-down list I am using this code.
<?= $form->field($medicinerequest, '[' . $id . ']' . 'medicine_name')
->DropDownList(ArrayHelper::map(\app\models\Medicine::find()
->asArray()->all(), 'id', 'medicine_name','medicine_id' ),
[ 'prompt' => 'Please Select' ])?>
I am getting the drop-down list as in the picture. But I want it to be concatenated by hyphen(-) in one line. How can I do this?