Longman\IPTools\Ip::isRemote PHP Method

isRemote() public static method

Checks if an IP is remot
public static isRemote ( string $ip ) : boolean
$ip string IP
return boolean true if the IP is remote, otherwise false
    public static function isRemote($ip)
    {
        return !self::isLocal($ip);
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 public function testRemote()
 {
     $status = Ip::isRemote('8.8.8.8');
     $this->assertTrue($status);
 }