To create a dropdown from array in PHP you can use the following snippet.
Sample PHP
$testArray = array('Sample1','Sample2','Sample3','Sample4'); echo'<select name="Items">'; foreach($testArray as $item){ echo'<option value="'.$item.'">'.$item.'</option>'; } echo'</select>';
RT @CodeSnippetsNET: How to create a dropdown from array in #PHP http://t.co/NIH4pGqNlA #html #css #js #jquery
RT @CodeSnippetsNET: How to create a dropdown from array in #PHP http://t.co/NIH4pGqNlA #html #css #js #jquery