$ip=27015;

$ipListe= [27015, 27016, 27017];
if (in_array($ip,$ipListe) ==1) {

echo"true";
} else {
echo"false";
}