I have an array given as:
$my_fontSizes = array("" => "100% Default",
"150%" => "150% of default",
"80%" => "80% of default"
);
When I turn this into a select list, how do I specify that the "value" of the option is what's on the left side of the => sign and the "text label" is what's on the right?
Example, here's what I'm using now, but the element on the right side of the => is being set as both the value and the label:
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } ?> value='<?php echo $option; ?>'><?php echo $option; ?></option><?php } ?>
</select>