• Hi there,

    I have a query regarding PHP API usage.

    Can you use multiple country codes for the below code- For the example below I have used 3 countries: DE,GB,US

    if (function_exists(‘geoip_detect2_get_info_from_current_ip’)) {
    $userInfo = geoip_detect2_get_info_from_current_ip();
    if ($userInfo->country->isoCode == ‘DE,GB,US‘) {
    echo ‘Hallo! Sch?n dass Sie hier sind!’;
    }
    } else {
    echo ‘<!– Warning: The plugin Geolocation IP Detection is not active. –>’;
    }

    Or is it only possible to enter one country code here?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘API: PHP Query’ is closed to new replies.