PHP Class IsoCodes\IP

Inheritance: implements isocodes\IsoCodeInterface
Exibir arquivo Open project: ronanguilloux/isocodes Class Usage Examples

Public Methods

Method Description
validate ( string $ipv4 ) : boolean IPV4 public-only validator.
validateIPV6 ( string $ipv6 ) : boolean IPV6 validator.

Method Details

validate() public static method

IPV4 public-only validator.
public static validate ( string $ipv4 ) : boolean
$ipv4 string
return boolean

validateIPV6() public static method

IPV6 validator.
public static validateIPV6 ( string $ipv6 ) : boolean
$ipv6 string
return boolean