title: PHP - array_search() fails on === true, but not on !== false?
body: <p>When I want to check if something is in the array and get the key back, I use the <a href="http://php.net/manual/en/function.array-search.php" rel="nofollow noreferrer">array_search()</a> function.</p>
  
  <p>Why is it when I compare the function to be exactly equal to true (=== true) it returns false, and when I compare it to not be exactly equal to false (!== false) it returns true?</p>
  
  <pre><code>&lt;?php
      if(array_search($value, $array) === true)
      {
          // Fails
      }
  
      if(array_search($value, $array) !== false)
      {
          // Succeeds
      }
  ?&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>