title: Find One Array Element Data In Other Array Element
body: <p>My question is related to PHP</p>
  
  <p>I have 2 arrays:</p>
  
  <pre><code>Array1 
  (
      [0] =&gt; "Pecan, Blackberry, Peach, Apple, Orange, Banana"
      [1] =&gt; "Potato, Tomato, Broccoli, Spinach"
      [2] =&gt; "Cake, Ice-cream, Candy, Jelly, Chocolate"
  }
  
  Array2 
  (
      [0] =&gt; "Banana"
      [1] =&gt; "Apple"
      [2] =&gt; "Peach"
  }
  </code></pre>
  
  <p>and I only want to match <code>Array2[0]</code> element with <code>Array1[0]</code> to check whether the value of <code>Array2[0]</code> (in this case, it is <code>Banana</code>) exists in the element of <code>Array1[0]</code> or not</p>
  
  <p>Though, I can work around this with someway, but I'd like to know if there's a fast, less memory consuming built-in function or another way because I need to do this 10 times when my page loads.</p>