title: Adding extra elements to options array in Zend_Form_Element_Select
body: <p>Basically, I need an extra bit of data to be included in a select box which is created with Zend. The current markup is as follows:</p>
  
  <pre><code>&lt;select&gt;
      &lt;option label="Canadian Dollar ($)" value="1"&gt;Canadian Dollar ($)&lt;/option&gt;
      &lt;option label="Euro (€)" value="2"&gt;Euro (€)&lt;/option&gt;
      &lt;option label="US Dollar ($)" value="3"&gt;US Dollar ($)&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The markup I'm trying to achieve is as follows (notice the additional 'data-curreny-type' attribute):</p>
  
  <pre><code>&lt;select&gt;
      &lt;option label="Canadian Dollar ($)" value="1" data-currency-code="CAD"&gt;Canadian Dollar ($)&lt;/option&gt;
      &lt;option label="Euro (€)" value="2" data-currency-code="EUR"&gt;Euro (€)&lt;/option&gt;
      &lt;option label="US Dollar ($)" value="3" data-currency-code="USD"&gt;US Dollar ($)&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The form is being created using Zend as follows:</p>
  
  <pre><code>$element = new Zend_Form_Element_Select(self::NAME);
  
  /* -- OMMITED DB CODE --*/
  
  $element-&gt;setOptions($options);
  </code></pre>
  
  <p>$options is an array in the form of: array('1' => 'Value1', '2'=> 'Value2').. etc.</p>
  
  <p>My qestion is, is there any way of adding extra elements into the 'options' element using Zend ->setOptions($opts)? Or anything I might not be aware of.</p>
  
  <p>Please help!</p>