Why compare don`t work : <p>How is this possible, what is wrong with all the four checks?
And what is the correct way to check this?</p>

<pre><code>&lt;?php
$url = 'domain.dev';
var_dump(strpos($url, 'admin'));

 if(strpos($url, 'admin') ===  false);
 {
    var_dump($url);
 }       

if(strpos($url, 'admin') !== false);
{
   var_dump($url);
}       

if(strpos($url, 'admin') === true);
{
    var_dump($url);
} 

if(strpos($url, 'admin') == true);
{
    var_dump($url);
}         
</code></pre>

<p>The output of this is:</p>

<pre><code>bool(false)
string(10) "domain.dev"
string(10) "domain.dev"
string(10) "domain.dev"
string(10) "domain.dev"
</code></pre>
