title: Codeigniter dropdown default to last item?
body: <p>I create an array of numbers for ordering a gallery. I wanted to know if there was a way to have the dropdown default to the last item instead of the first? So with the example code when the page loads it would have the 6th element (value 5) selected as default.</p>
  
  <pre><code>&lt;php? // Codeigniter that generates the select dropdown.
  form_dropdown('order', $order);
  ?&gt;
  
  &lt;select name="order"&gt;
      &lt;option value="0"&gt;1&lt;/option&gt;
      &lt;option value="1"&gt;2&lt;/option&gt;
      &lt;option value="2"&gt;3&lt;/option&gt;
      &lt;option value="3"&gt;4&lt;/option&gt;
      &lt;option value="4"&gt;5&lt;/option&gt;
      &lt;option value="5"&gt;6&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>