PHP uses an array to populate the drop-down list box, and the PHP array drop-down list box
This example describes how PHP populates a drop-down list box with an array. Share to everyone for your reference. The implementation method is as follows:
<?php$data = Array ( (object) Array ("Titulo" = "Ford", "Valor" = "Opcion1"), (object) Array ("Titulo" = > "Peugeot", "Valor" and "Opcion2"), (object) Array ("Titulo" = "Chevrolet", "Valor" and "Opcion3"), ( Object) Array ("Titulo" = "Volskwagen", "Valor" = "Opcion4"),); >
Seleccione fabricante<?phpfor ($i =0; $i <?php echo $data [$i]->titulo?><?php}?>
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/976692.html www.bkjia.com true http://www.bkjia.com/PHPjc/976692.html techarticle PHP uses an array to populate the drop-down list box, and the PHP array drop-down list box describes how PHP populates a drop-down list box with an array. Share to everyone for your reference. Concrete Reality ...