title: Create multi dimensional array in cakephp
body: <p>Now I have 3 row of data.</p>
  
  <pre><code>id  name    date
  1   data1   12-06-2013
  2   data2   12-06-2013
  3   data3   16-06-2013
  </code></pre>
  
  <p>now I want to group the 3 rows of data into a new array, something like:</p>
  
  <pre><code>Array
  (
     [2013-06-12] =&gt; Array
     (
       [0] =&gt; data1
       [1] =&gt; data2
     )
     [2013-06-16] =&gt; Array
     (
      [0] =&gt; data3
     )
  )
  </code></pre>
  
  <p>the question is 1st i using foreach to show all date out.<br>
  <code>&lt;?php foreach($datax as $data):</code><br>
  <code>echo $data['Model_Name']['id'];</code><br>
  <code>endforeach;?&gt;</code></p>
  
  <p>then, while i looping i want to group up the <code>$data</code> sort to date as the multidimensional array as above.</p>