Your code is missing a variable named $value and "100% Default" will need a value (like 0 OR null , just to fill the space) but your can loop through your array and get the value and option text like so: