PHP foreach loop to populate dropdown list with values from an array of arrays

前端 未结 4 1848
予麋鹿
予麋鹿 2020-12-14 13:04

I have an array of an arrays created using the following code. I\'m trying to get this to loop through and populate a dropdown list.

$names         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 14:01

    Go for for each loop to avoid these much coding.

    $nameVal){ ?>
       
    
    

提交回复
热议问题