1<select name="mydropdown">
2 <option selected="selected">Choose one</option>
3 <?php
4 // A sample product array
5 $products = array("Mobile", "Laptop", "Tablet", "Camera");
6
7 // Iterating through the product array
8 foreach($products as $item){
9 echo "<option value='strtolower($item)'>$item</option>";
10 }
11 ?>
12</select>