- strpos: documentation ( source)
- explode: documentation ( source)
<?php
$string = "jackson heights, queens, new york, us";
$word = explode(',', $string);
echo $word[1]."<br>";
if(strpos($string, $word[1]) === false){
echo "not found";
} else {
echo "found";
}