title: add php array element to an array how has same key and value
body: <p>I have an array like this how had same gtin:</p>
  
  <pre><code>Array
  (
      [0]
          (
              [status] =&gt; ERROR
              [message] =&gt; 'message error'
              [gtin] =&gt; 03661733003170
          )
  
      [1]
          (
              [status] =&gt; SUCCESS
              [message] =&gt; 
              [gtin] =&gt; 03661985096630
          )
  )
  </code></pre>
  
  <p>and another array like this :</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [e_id] =&gt; 219
              [v_id] =&gt; 20
              [gtin] =&gt; 03661733003170
          )
  
      [1] =&gt; Array
          (
              [e_id] =&gt; 217
              [v_id] =&gt; 15
              [gtin] =&gt; 03661985096630
          )
  
  
  )
  </code></pre>
  
  <p>I want to combine this two array in one array how has the same gtin like this I have try lot of php function but nothing resold my problem:</p>
  
  <pre><code>Array
  (
      [03661733003170]
          (
              [status] =&gt; ERROR
              [message] =&gt; 'message error'
              [e_id] =&gt; 219,
              [v_id] =&gt; 20
          )
  
      [03661985096630]
          (
              [status] =&gt; SUCCESS
              [message] =&gt; 
              [evt_id] =&gt; 217,
              [evl_id] =&gt; 15
          )
  )
  </code></pre>
  
  <p>thank for help</p>