title: Return key values from first array whose key is in second array
body: <p>I have two arrays I want to search from first array by key only which i have in second array and as third array i want to print result:</p>
  
  <pre><code>$colldata=array("bench-press-rod"=&gt;'',"adidas-classic-backpack"=&gt;'93549559913',"adidas-classic-backpack-legend-ink-multicolour"=&gt;'',"puma-suede-classic-regal"=&gt;'93549920361,93549723753');
  $colldata2=array(0 =&gt; 'bench-press-rod',1 =&gt; 'adidas-classic-backpack');
  </code></pre>
  
  <p>Expected result:</p>
  
  <pre><code>array('bench-press-rod'=&gt;'',"adidas-classic-backpack"=&gt;'93549559913');
  </code></pre>