title: Why is using array_search on multidimensional array is returning False, while the searched array IS there?
body: <p>My program's logic is complex, but I am facing problem in a little part, where I need to search for a key,value pair in a multidimensional array. For that, <a href="https://stackoverflow.com/questions/6661530/php-multidimensional-array-search-by-value#answer-24527099">I am using a combination of <code>array_search()</code> and <code>array_column()</code> functions.</a> </p>
  
  <p>To demonstrate the problem, I have written the following little SSCCE. </p>
  
  <pre><code>$arrayOne = array ( '$oid' =&gt; '5e140f97e603f88ee52008ab' );
  
  $arrayTwo = array ( 
    0 =&gt; array ( '$oid' =&gt; '5e140f97e603f88ee52008ab')
  );
  
  if ( array_search($arrayOne, $arrayTwo) ) {
      echo "True";
  } else {
      echo "False";
  }
  </code></pre>
  
  <p><strong>The output is always <code>False</code>.</strong></p>
  
  <p>Now, since the key,value pair <code>$oid</code>,<code>5e140f97e603f88ee52008ab</code> IS there in $arrayTwo, so why am I getting <code>False</code> in output?</p>