Auto populate a select box using an array in PHP

后端 未结 3 1586
清酒与你
清酒与你 2020-12-11 07:15

If i had a select box


and I had an array of values from 1-12

using ph

3条回答
  •  青春惊慌失措
    2020-12-11 07:53

    supposing the array looks like:

    $array = array(
      1=>"My first option",
      2=> "My second option"
    );
    
    
    

提交回复
热议问题