title: How to search if the key value in an array exists in another array, using PHP?
body: <p>I need a help. I have two arrays. I need to check if the values in first array are present in second or not. The arrays are as:</p>
  
  <pre><code>$maindata=array(array('id'=&gt;3),array('id'=&gt;7),array('id'=&gt;9));
  $childata=array(array('id'=&gt;7),array('id'=&gt;11),array('id'=&gt;3),array('id'=&gt;123));
  </code></pre>
  
  <p>Here, I need to check if each value from first array is present inside second array or not. If yes, then should return <code>true</code> else <code>false</code> at each time.</p>