What is the best way in PHP to reduce an array by an array of known keys?
<p>I am browsing the <a href="http://www.php.net/manual/en/ref.array.php" rel="nofollow">array functions</a> in PHP, trying to find the magical wand(s) to do this.</p>

<p>Here is what I have.</p>

<pre><code>$images = array(...);

$randomImages = array_rand($images, 3);

// Now I want to reduce $images by the keys in $randomImages
</code></pre>

<p>What PHP array functions can I leverage for this?</p>

<h3>Update</h3>

<p>I ended up answering my own question after digging for a while, but I'm still open to alternate solutions :)</p>
