Function __global->ip_address_is_local

Definitions

sources/global3.php

  • See if an IP address is local (localhost or on non-routable LAN).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

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

Returns

  • Whether the IP address is local
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * See if an IP address is local (localhost or on non-routable LAN).
 *
 * @param  IP $ip_address IP address
 * @return boolean Whether the IP address is local
 */

function ip_address_is_local(string $ip_address) : bool