is there a native php function to see if one array of values is in another array?
<p>Is there a better method than loop with strpos()?</p>

<p>Not i'm looking for partial matches and not an in_array() type method.</p>

<p>example needle and haystack and desired return:</p>

<pre><code>$needles[0] = 'naan bread';
$needles[1] = 'cheesestrings';
$needles[2] = 'risotto';
$needles[3] = 'cake';

$haystack[0] = 'bread';
$haystack[1] = 'wine';
$haystack[2] = 'soup';
$haystack[3] = 'cheese';

//desired output - but what's the best method of getting this array?
$matches[0] = 'bread';
$matches[1] = 'cheese';
</code></pre>

<p>ie:</p>

<p>magic_function($haystack, %$needles%) !</p>
