title: php compare multidimensional array values in single dimensional array
body: <p>I have two different array. One is single dimensional array like below.</p>
  
  <pre><code>Array
  ( 
     [0] =&gt; products_01.jpg
     [1] =&gt; products_02.jpg 
  ) 
  </code></pre>
  
  <p>And Second array is multi dimensional array like below.</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_01.jpg
              [name] =&gt; products_01.jpg
          )
  
      [1] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_02.jpg
              [name] =&gt; products_02.jpg
          )
  
      [2] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_03.jpg
              [name] =&gt; products_03.jpg
          )
  
      [3] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_04.jpg
              [name] =&gt; products_04.jpg
          )
  
  )  
  </code></pre>
  
  <p>Now i want to compare both array and if we get same value for key "name" then delete that array. <strong>Without using foreach or for</strong>. Do any one have idea that php provide any inbuilt array function or not ?  </p>
  
  <p><strong>I want Output Like Below</strong></p>
  
  <pre><code>Array
  (
  
      [0] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_03.jpg
              [name] =&gt; products_03.jpg
          )
  
      [1] =&gt; Array
          (
              [imgurl] =&gt; http://example.com/upload/products_04.jpg
              [name] =&gt; products_04.jpg
          )
  
  )  
  </code></pre>