title: Get array values by keys
body: <p>I am searching for a built in php function that takes array of keys as input and returns me corresponding values.</p>
  
  <p>for e.g. I have a following array   </p>
  
  <pre><code>$arr = array("key1"=&gt;100, "key2"=&gt;200, "key3"=&gt;300, 'key4'=&gt;400);
  </code></pre>
  
  <p>and I need values for the keys <strong>key2</strong> and <strong>key4</strong> so I have another <code>array("key2", "key4")</code>
  I need a function that takes this array and first array as inputs and provide me values in response. So response will be <code>array(200, 400)</code></p>