title: Split Array into Smaller Arrays Based on Value of Key?
body: <p>I have mysql search results from a keyword search being performed on my site. They're sorted by membership rank (0-3). However, I need to display the ranks differently than each other - like rank 3 gets more prominent formatting than the others. </p>
  
  <p>I was thinking of splitting the rows up into individual arrays. So like array0 would contain all the rows that had the rank of 0, etc. Then loop through these arrays to display the results. I just have  NO idea how to do this -- split the array up into smaller arrays. </p>
  
  <p>(For reference, I found this question: <a href="https://stackoverflow.com/questions/4578303/splitting-a-large-array-into-smaller-arrays-based-on-the-key-names">splitting a large array into smaller arrays based on the key names</a> but I wasn't really sure if that's what I needed... maybe some clarification on that q would help here?)</p>
  
  <p>For example here is my array:</p>
  
  <pre><code>Array ( 
       [rank]         =&gt; 3 
       [organization] =&gt; Test Company 
       [imagecompany] =&gt; 1636.gif 
       [website]      =&gt; http://www.google.com 
       [phone]        =&gt; 344-433-3424 
       [fax]          =&gt; 
       [address_on_web] =&gt; physical   
       [address] =&gt; 2342 Test Ave 
       [city] =&gt; York 
       [stateprov] =&gt; WA 
       [postalcode] =&gt; 00000 
       [address_mailing] =&gt; 2342 Test Ave 
       [city_mailing] =&gt; Seattle 
       [state_mailing] =&gt; WA 
       [zip_mailing] =&gt; 00000 
       [description] =&gt; 'Test test Test test Test test Test test Test 
  
  test Test test Test test Test test Test test Test test Test test Test test Test test 
  
  Test test Test test'
       [customerid] =&gt; 1636 ) 
  </code></pre>