Do you like this library? Leave a ★ or run composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!
Represents an IP value.
// vendor/darsyn/ip/src/IP.php
/**
* Constructor
*
* @access public
* @param string $ip
* @param integer $type
* @throws \InvalidArgumentException
* @throws \Darsyn\IP\InvalidIpAddressException
*/
public function __construct($ip)
See the working example: examples/Ip.php.
$value = '127.0.0.1';
$ip = new Ip($value);
dump($ip);
About CIDR: http://software77.net/cidr-101.html
Do you like this library? Leave a ★ or run composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!