If there are more than 3 possible values for $GET['city'], you might want to consider using a switch structure:
if (isset($_GET['city'])) {
switch ($_GET['city']) {
case "NewYork":
echo "New York";
break;
case "London":
echo "London";
break;
default:
//invalid city given
}
} else {
//no city given
}
or perhaps an array with the keys as the valid values of $_GET['city'], and values as the data to be used:
$cities = array("NewYork" => "New York", "London" => "London");
if (isset($_GET['city'])) {
if (array_key_exists($_GET['city'], $cities)) {
echo $cities[$_GET['city']];
} else {
//invalid city given
}
} else {
//no city given
}