Function __global->rain_get_country_image

Definitions

sources/realtime_rain.php

  • Get a country flag image for an IP address.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ip_address IP No No required parameter N/A N/A An IP address

Returns

  • Country flag image (blank: could not find one)
  • Type: URLPATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a country flag image for an IP address.
 *
 * @param  IP $ip_address An IP address
 * @return URLPATH Country flag image (blank: could not find one)
 */

function rain_get_country_image(string $ip_address) : string