php-ip
php-ip copied to clipboard
Feature to extract CIDR netmask
Thanks for the nice library. Im missing a feature to get the mask() in cidr.
Example: $block = new IPv4Block('128.0.0.0/16'); $block->getMask() = 255.255.0.0
Wish: $block->getMaskCIDR() = 16
$block->getPrefix() should do it.
Indeed there is $block->getPrefix()
for that. I need to update the documentation!