title: Rearrange array value in php
body: <p>I have a problem to rearrange the array.This is my final array:</p>
  
  <pre><code>Array
  (
      [5833261e-dc14-48e3-9ee1-682a7f000201] =&gt; Array
          (
              [344] =&gt; apple - 344
              [345] =&gt; apple - 345
              [acc_name] =&gt; Apple 1233 - acc_name
          )
  
      [58332069-fab4-44c7-9ac9-487b7f000201] =&gt; Array
          (
              [343] =&gt; apple 123456 - 343
              [acc_name] =&gt; Orange Test - acc_name
          )
  )
  </code></pre>
  
  <p>I want to rearrange this to like below:</p>
  
  <pre><code>Array
      (
          [Apple 1233 - acc_name] =&gt; Array
              (
                  [344] =&gt; apple - 344
                  [345] =&gt; apple - 345
              )
  
          [Orange Test - acc_name] =&gt; Array
              (
                  [343] =&gt; apple 123456 - 343                
              )
      )
  </code></pre>
  
  <p>So guys can you please achieve this output array.</p>