Andrew Guriew

country->isoCode;
$region = $userInfo->mostSpecificSubdivision->isoCode;
$city = $userInfo->city->name;
$regionName = $userInfo->mostSpecificSubdivision->name;

if ($country == ‘DE’)
{
echo “Phone(+WhatsApp): +49 1577 744 1459\nGermany\n”;
switch ($region) {
case BW: case SL: case RP: echo “Stuttgart \n Kontakt“; break;
case BE: case BB: case ST: echo “Berlin\n Kontakt“; break;
case HB: case HH: case MV: case SH: echo “Hamburg\n Kontakt“; break;
case HE: echo “Frankfurt \n Kontakt“; break;
case NI: echo “Hannover\n Kontakt“; break;
case NW: echo “Dusseldorf\n Kontakt“; break;
case SN: echo “Dresden\n Kontakt“; break;
case TH: echo “Leipzig\n Kontakt“; break;
}

}

elseif ($country == ‘FR’)
{
echo “Phone(+WhatsApp): +49 1577 744 1459\nFrance\n”;
switch ($region) {
case AR: case BF: echo “Lyon\n Kontakt“; break;
case BT: echo “Rennes\n Kontakt“; break;
case CN: case AO: case NC: case ND: case PL: case ‘IF’: echo “Paris\n Kontakt“; break;
case AC: echo “Bordeaux\n Kontakt“; break;
case LP: echo “Touluose\n Kontakt“; break;
case PR: case CE: echo “Cannes\n Kontakt“; break;
}
}

elseif ($country == ‘IT’)
{
echo “Phone(+WhatsApp): +49 1577 744 1459\nItaly\n”;
switch ($region) {
case AB: case MH: case ML: case LZ: echo “Rome\n Kontakt“; break;
case PU: case BC: case LB: echo “Bari\n Kontakt“; break;
case CM: case ML: echo “Naples\n Kontakt“; break;
case ER: echo “Bologna\n Kontakt“; break;
case VN: case FV: echo “Venice\n Kontakt“; break;
case LG: echo “Genoa\n Kontakt“; break;
case LM: echo “Milan\n Kontakt“; break;
case PM: echo “Turin\n Kontakt“; break;
case SC: echo “Sicilia\n Kontakt“; break;
case TC: echo “Florence, Toscana\n Kontakt“; break;
case UM: echo “Perugia\n Kontakt“; break;
}
}

elseif ($country == ‘ES’)
{
echo “Phone(+WhatsApp): +34 602 283 342\nSpain\n”;
switch ($region) {
case AN: echo “Seville\n Kontakt“; break;
case AR: case IB: case CT: echo “Barcelona\n Kontakt“; break;
case MD: case ‘AS’: case CL: case CM: case EX: echo “Madrid\n Kontakt“; break;
case VC: case CN: case MC: echo “Valencia\n Kontakt“; break;
}
}

elseif ($country == ‘CH’)
{
echo “Phone(+WhatsApp): +49 1577 744 1459\nSwitzerland\n”;
switch ($region) {
case GE: echo “Geneva\n Kontakt“; break;
case BE: echo “Bern\n Kontakt“; break;
case LU: echo “Lucerne\n Kontakt“; break;
case ZH: echo “Zurich\n Kontakt“; break;
case BS: echo “Basel\n Kontakt“; break;
case VD: echo “Lausanne\n Kontakt“; break;
}
}

elseif ($country == ‘FI’)
{
echo “Phone(+WhatsApp): +49 1577 744 1459\nFinland\n”;
switch ($region) {
case SK: echo “Lappeenranta\n Kontakt“; break;
case SF: echo “Turku\n Kontakt“; break;
case TR: echo “Tampere\n Kontakt“; break;
case US: echo “Helsinki\n Kontakt“; break;
case KY: echo “Kotka.\n Kontakt“; break;
}
}

elseif ($country == ‘US’)
{
echo “Phone(+WhatsApp): +1 940 623 1769\nUSA\n”;
switch ($region) {
case AL: echo “Alabama\n Kontakt“; break;
case CO: echo “Calorado\n Kontakt“; break;
case DC: echo “Washington\n Kontakt“; break;
case FL: echo “Florida\n Kontakt“; break;
case GA: echo “Georgia\n Kontakt“; break;
case IL: case MO: echo “Illinois\n Kontakt“; break;
case KY: echo “Kentucky\n Kontakt“; break;
case LA: echo “Louisiana\n Kontakt“; break;
case MA: echo “Boston\n Kontakt“; break;
case MI: case MN: echo “Michigan\n Kontakt“; break;
case NJ: case NY: echo “New-York\n Kontakt“; break;
case ‘OR’: case CA: case NC: case NV: echo “San-Francisco\n Kontakt“; break;
case OH: echo “Ohio\n Kontakt“; break;
case NM: case AZ: case SC: echo “Los-Angeles\n Kontakt“; break;
case OK: case TX: echo “Texas\n Kontakt“; break;
case WI: echo “Wisconsin\n Kontakt“; break;
}
}

//далее идут все страны Европы без разбивки по регионам

elseif ($country == ‘AT’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\nVienna, Ausria\n Kontakt“;
}
elseif ($country == ‘SE’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\nStockholm, Sweden\n Kontakt“;
}
elseif ($country == ‘NL’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\nAmsterdam, Netherlands
\n Kontakt“;
}
elseif ($country == ‘BE’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\nBrussels, Belgium\n Kontakt“;
}
elseif ($country == ‘NO’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\nOslo, Norway\n Kontakt“;
}
elseif ($country == ‘GB’)
{ echo “Phone(+WhatsApp): +44 7509 763 342\nLondon, United Kingdom\n Kontakt“;
}
elseif ($country == ‘RU’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\n”;
}
elseif ($country == ‘UA’)
{ echo “Phone(+WhatsApp): +49 1577 744 1459\n”;
}

else {
echo “Phone(+WhatsApp): +49 1577 744 1459\n”;
}

?>

Email: mail@guriew.eu