title: How to add '[]' to form element name in Zend_Form?
body: <p>I am creating form elements like this</p>
  
  <pre><code>    $elements = array();
  
      $element = $this-&gt;CreateElement('checkbox', 'field[0]' );
      $element-&gt;setLabel( 'MyField1' );
      $element-&gt;setAttrib( 'checked', true );
      $elements[] = $element;
  
      $element = $this-&gt;CreateElement('checkbox', 'field[1]' );    
      $element-&gt;setLabel( 'MyField2' );
      $element-&gt;setAttrib( 'checked', true );
      $elements[] = $element;
  
      $this-&gt;addElements( $elements );
  </code></pre>
  
  <p>But it is setting <code>name='field0'</code> and <code>name='field1'</code> instead of <code>name='field[0]'</code> and <code>name='field[1]'</code></p>
  
  <p>How can we add <code>[]</code> in elements names?</p>
  
  <p>Thanks</p>