title: split up an array of dates into consecutive date arrays
body: <p>i have a array of dates that looks something like this:</p>
  
  <pre><code>Array (
    [0] =&gt; 08/20/2013
    [1] =&gt; 08/21/2013
    [2] =&gt; 08/22/2013
    [3] =&gt; 08/23/2013
    [4] =&gt; 08/26/2013
  )
  </code></pre>
  
  <p>it's always going to be different depending on the dates the user selects but for example lets use this one.</p>
  
  <p>what i need to do is figure out a way to separate the array into consecutive dates and non consecutive dates.</p>
  
  <p>so in the end i should have something like:</p>
  
  <pre><code>Array (
    [0] =&gt; 08/20/2013
    [1] =&gt; 08/21/2013
    [2] =&gt; 08/22/2013
    [3] =&gt; 08/23/2013
  )
  
  Array ([4] =&gt; 08/26/2013)
  </code></pre>
  
  <p>i should specify that it's not only two arrays. non consecutive dates would each have their own array, and consecutive dates would each be in their own array.</p>