This function will create <option></option> from the entries in a given array, often created by the makefilelist() function.
The selected option is given by the $selected.
The selected option is given by the $selected.
Quote
makefileopts ( array $files [, string $selected ] )
<?php
$files = array("articles", "news_cats", "photoalbum", "ranks", "smiley");
$selected = "ranks";
echo "<select>";
echo makefileopts($files, $selected);
echo "</select>";
?>
Quote
<select>
<option value='articles'>articles</option>
<option value='news_cats'>news_cats</option>
<option value='photoalbum'>photoalbum</option>
<option value='ranks' selected='selected'>ranks</option>
<option value='smiley'>smiley</option>
</select>