title: Select matching id arrays from give 2 arrays
body: <p>i have 2 arrays  code written in php</p>
  
  <pre><code>Array
  (
      [qty_ordered] =&gt; 12.0000
      [product_id] =&gt; 2080
      [product_name] =&gt; Watchadmin1
      [product_price] =&gt; 1010.0000
  )
  Array
  (
      [qty_ordered] =&gt; 11.0000
      [product_id] =&gt; 2086
      [product_name] =&gt; WatchAdmin88
      [product_price] =&gt; 1010.0000
  )
  Array
  (
      [qty_ordered] =&gt; 11.0000
      [product_id] =&gt; 2076
      [product_name] =&gt; admin3
      [product_price] =&gt; 1010.0000
  )
  </code></pre>
  
  <p>and Second array collection is </p>
  
  <pre><code>Array
  (
      [entity_id] =&gt; 2080
      [sku] =&gt; Watchadmin1
      [current_user_id] =&gt; 1
  )
  Array
  (
      [entity_id] =&gt; 2081
      [sku] =&gt; Watchadmin8
      [current_user_id] =&gt; 1
  )
  Array
  (
      [entity_id] =&gt; 2082
      [sku] =&gt; abc
      [current_user_id] =&gt; 1
  )
  </code></pre>
  
  <p>I want to get all products from first array and store another new array when product_id of first array and entity_id of second array will same. ex <code>product_id=2080</code> and <code>entity_id=2080</code>
  then this array will save another array . </p>
  
  <p>can you guide me best code  ? </p>