title: PHP finding the first matching value in 2 arrays
body: <p>I have two arrays and want to find the first match for either of arrayTwos values in arrayOne.</p>
  
  <pre><code>arrayOne ( [0] = C [1] = A [2] = B [3] = D [4] = B [5] = C) 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>arrayTwo ( [0] = A [1] = B [2] = C )
  </code></pre>
  
  <p>With these values I would want to return the value "C" as it is the first value in arrayTwo to appear in arrayOne.</p>
  
  <p>I'm thinking I could use for loops and if statements to run through but re there any functions in PHP I could use to simplify this?</p>