Select Dropdown PHP foreach loop with 'optgroup' options

前端 未结 4 509
名媛妹妹
名媛妹妹 2020-12-20 04:10

I have a dropdown menu with a PHP \'foreach\' that I loop through to populate the select options. This works well. However, what I\'d like to do is have various sub labels u

4条回答
  •  有刺的猬
    2020-12-20 04:43

    This method does not require sorting the array

    
    

提交回复
热议问题