title: Split MYSQL results into 4 arrays
body: <p>I have a mysql query which spits out the following:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [bid] =&gt; 18
              [name] =&gt; Cafe Domingo
              [imageurl] =&gt; sp_domingo.gif
              [clickurl] =&gt; #
          )
  
      [1] =&gt; stdClass Object
          (
              [bid] =&gt; 19
              [name] =&gt; Industrial Sweeping Services
              [imageurl] =&gt; sp_iss.gif
              [clickurl] =&gt; http://www.industrialsweeping.com.au/
          )
  
      [2] =&gt; stdClass Object
          (
              [bid] =&gt; 22
              [name] =&gt; Melbourne Food Distributors
              [imageurl] =&gt; sp_mfd.gif
              [clickurl] =&gt; http://www.campbells.com.au/
          )
  
      [3] =&gt; stdClass Object
          (
              [bid] =&gt; 26
              [name] =&gt; Toyota Chadstone
              [imageurl] =&gt; sp_toyota.jpg
              [clickurl] =&gt; http://www.chadstonetoyota.com.au/
          )
  
      [4] =&gt; stdClass Object
          (
              [bid] =&gt; 15
              [name] =&gt; Bay Corporate Catering
              [imageurl] =&gt; sp_baycorp.gif
              [clickurl] =&gt; http://www.baycorporatecatering.com.au/
          )
  
      [5] =&gt; stdClass Object
          (
              [bid] =&gt; 24
              [name] =&gt; Steve Wilby Transport
              [imageurl] =&gt; sp_swilky.gif
              [clickurl] =&gt; http://www.stevewilby.com.au/
          )
  
      [6] =&gt; stdClass Object
          (
              [bid] =&gt; 17
              [name] =&gt; Cody Gems and Jewellery
              [imageurl] =&gt; sp_cody.gif
              [clickurl] =&gt; #
          )
  
      [7] =&gt; stdClass Object
          (
              [bid] =&gt; 21
              [name] =&gt; Matthew Davis Australia Pty Ltd
              [imageurl] =&gt; sp_matthewdavis.gif
              [clickurl] =&gt; http://www.matthewdavis.com.au/
          )
  
      [8] =&gt; stdClass Object
          (
              [bid] =&gt; 25
              [name] =&gt; Tom the Lumberjack
              [imageurl] =&gt; sp_tom.gif
              [clickurl] =&gt; http://www.redwoodgardens.com.au/
          )
  
      [9] =&gt; stdClass Object
          (
              [bid] =&gt; 16
              [name] =&gt; Bendigo Bank
              [imageurl] =&gt; sp_bb.gif
              [clickurl] =&gt; http://www.bendigobank.com.au/
          )
  
      [10] =&gt; stdClass Object
          (
              [bid] =&gt; 14
              [name] =&gt; 360South Pty Ltd
              [imageurl] =&gt; sp_360south.gif
              [clickurl] =&gt; http://www.360south.com.au/
          )
  
      [11] =&gt; stdClass Object
          (
              [bid] =&gt; 23
              [name] =&gt; Redwood Gardens Chinese Restaurant
              [imageurl] =&gt; sp_redwood.gif
              [clickurl] =&gt; http://www.redwoodgardens.com.au/
          )
  
  )
  </code></pre>
  
  <p>Is it at all possible to then split that array into 4 arrays? With an equal amount of items in each array (as best as possible) but able to be dynamic as more information is put into the dbase).. So if there's an uneven amount, the last array has less?</p>
  
  <p>If that makes sense?</p>