IPAddress — A simple IP address class that works with IPv4 and IPv6
IPAddress is part of the User package.
class IPAddress { public string $address public int $prefix public IPAddress __construct ( string $address ); public string __toString ( void ); }
IPAddress
A simple IP address class that works with IPv4 and IPv6
public string $address
The fully expanded IPv6 address
Default value: empty string
public int $prefix
The number of prefix bits. 128 means a single, unique IPv6 address
Default value: empty string
public IPAddress __construct ( string $address );
Create a new IPAddress instance
public string __toString ( void );
Convert the IP address to a string. If it's an IPv4 address, it will be displayed as such.