Check and get the text after "near " in php
<p>When someone writes:</p>

<p>"Near Tokyo"</p>

<p>I would like to check first if the $search contains "near" and if it does then take the "Tokyo" into a variable $location.</p>

<p>I tried this:</p>

<pre><code>if(strpos($search, 'near') == true){
    $search = explode("near ", $location);
    echo $location;
    exit();
}
</code></pre>

<p>did not work, it does not execute the if statement</p>
