When someone writes:

"Near Tokyo"

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

I tried this:

```
if(strpos($search, 'near') == true){
    $search = explode("near ", $location);
    echo $location;
    exit();
}

```

did not work, it does not execute the if statement