title: Grouping Associative Arrays
body: <p>I want to be able to group <code>Associative Arrays</code> with their `keys. So far I'm lost of what syntax to use.</p>
  
  <p>As of now, I have thus code,</p>
  
  <pre><code>$associativeArray = array("Ripe Mango"=&gt;"Yellow", "Strawberry"=&gt;"Red", "Lemon"=&gt;"Yellow");
  groupByColor($associativeArray);
  
  function groupByColor($groupedArray)
  {
    return $groupedArray;
  }
  </code></pre>
  
  <p>My goal is to return the <code>array</code> while having it grouped, the ideal result will be like this;</p>
  
  <p><code>["Yellow"=&gt;["Ripe Mango", "Lemon"], "Red"=&gt;["Strawberry"]]</code></p>
  
  <p>Any hints on what method to use?</p>