title: How to get multiple values through one check box?
body: <p>I would like to get an array from a checkbox with one [id] and one [date] for each record.</p>
  
  <p>Here is my actual HTML / PHP :</p>
  
  <pre><code>&lt;input type="checkbox" name="collection[][id]" value="&lt;?php echo $row['id']; ?&gt;" /&gt;
  &lt;input type="hidden" name="collection[][date]" value="&lt;?php echo date(Ymd); ?&gt;" /&gt;
  </code></pre>
  
  <p>I get this :</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 544826
          )
  
      [1] =&gt; Array
          (
              [date] =&gt; 20170426
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 608555
          )
  
      [3] =&gt; Array
          (
              [date] =&gt; 20170426
          )
  )
  </code></pre>
  
  <p>And I would like this :</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 544826
              [date] =&gt; 20170426
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 608555
              [date] =&gt; 20170426
          )
  )
  </code></pre>
  
  <p>Please, how could I proceed ?</p>