title: Find strings inside array using PHP
body: <p>I have 2 arrays and am looking to find a value inside 1 of the arrays using PHP.</p>
  
  <p>I realise I'd have to use the PHP <code>explode</code> function but I'm afraid that's where my skills end.</p>
  
  <p>My function would compare the values of both arrays and if it finds any <code>$needle</code> values inside <code>$haystack</code>, it would return them inside <code>$found</code>. It could potentially find more than one, so perhaps <code>$found</code> should be an array too?</p>
  
  <pre><code>$needle = "Swimming,Landscaping,Gardening,Bricklaying,3D Modelling";
  $haystack = "Football,Rugby,Landscaping,3D Modelling";
  $found = magicFunction($needle,$haystick); 
  // $found['0'] = "Landscaping";
  // $found['1'] = "3D Modelling";
  </code></pre>
  
  <p>Does this make sense?</p>
  
  <p>Many thanks for any pointers with this.</p>