IP Class Reference
Inheritance diagram for IP:
IPInterface

Public Member Functions

 getIpVersion ($ip)
 
 getIpLong ($ip)
 
 getIp6array ($ip)
 
 getIpVersion ($ip)
 
 getIpLong ($ip)
 
 getIp6array ($ip)
 

Additional Inherited Members

- Data Fields inherited from IPInterface
const IPv4 = 4
 
const IPv6 = 6
 

Detailed Description

IP address helper

Author
tiborb

Definition at line 11 of file IP.php.

Member Function Documentation

◆ getIp6array()

getIp6array (   $ip)

Ipv6 to array

Parameters
string$ip
Returns
array

Implements IPInterface.

Definition at line 50 of file IP.php.

◆ getIpLong()

getIpLong (   $ip)

Ip to long

Parameters
string$ip
Returns
integer

Implements IPInterface.

Definition at line 38 of file IP.php.

◆ getIpVersion()

getIpVersion (   $ip)

Get IP verison

Parameters
string$ip
Returns
integer|boolean Returns version or false on invalid address

Implements IPInterface.

Definition at line 19 of file IP.php.