How to make a drop down list in yii2

In this post, I would like to show you how to create a drop-down list in yii2. This tutorial will help you to display the array data or model data in the drop-down list. I am using activeForm.

Drop down list syntax

Drop down list with Array

Drop down list with prompt

Drop down list With table Model Data

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.