title: Find value assoaction in array
body: <p>i have a multi dimension array with sub array having repeated values of '<strong>eduHisRowId</strong>' like:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [eduHisRowId] =&gt; 4
              [repOrderId] =&gt; 15
          )
  
      [1] =&gt; Array
          (
              [eduHisRowId] =&gt; 5
              [repOrderId] =&gt; 16
          )
  
      [2] =&gt; Array
          (
              [eduHisRowId] =&gt; 5
              [repOrderId] =&gt; 17
          )
  
      [3] =&gt; Array
          (
              [eduHisRowId] =&gt; 6
              [repOrderId] =&gt; 18
          )
  
      [4] =&gt; Array
          (
              [eduHisRowId] =&gt; 7
              [repOrderId] =&gt; 19
          )
  
      [5] =&gt; Array
          (
              [eduHisRowId] =&gt; 7
              [repOrderId] =&gt; 20
          )
  
      [6] =&gt; Array
          (
              [eduHisRowId] =&gt; 8
              [repOrderId] =&gt; 21
          )
  
  )
  </code></pre>
  
  <p>Now i want sort out these repeated values such that i could be able to check that the record present on index '<strong>[1] => Array</strong>' is associated with the record which is present on index '<strong>[2] => Array</strong>' &amp; this associated relation will also be in array format like:</p>
  
  <pre><code>Array
      (
          [0] =&gt; Array
              (    
                  [0] =&gt; 4
                  [1] =&gt; Array
                      (
                          [0] =&gt; 15
                      ) 
              )
  
          [1] =&gt; Array
              (
                  [0] =&gt; 15
                  [1] =&gt; Array
                      (
                          [0] =&gt; 16
                          [0] =&gt; 17
                      )
              )
  
          [2] =&gt; Array
              (
                  [0] =&gt; 6
                  [1] =&gt; Array
                      (
                          [0] =&gt; 18
                      )
              )
  
          [3] =&gt; Array
              (
                  [0] =&gt; 7
                  [1] =&gt; Array
                      (
                          [0] =&gt; 19
                          [0] =&gt; 20
                      )
              )
  
          [4] =&gt; Array
              (
                  [0] =&gt; 8
                  [1] =&gt; Array
                      (
                          [0] =&gt; 21
                      )
              )
  
      )
  </code></pre>
  
  <p>where 0th index of innre mos array will contain '<strong>eduHisRowId</strong>' value &amp; the array on 1st index will contain '<strong>repOrderId</strong>' values.</p>
  
  <p>Thanks in advance...</p>