Helpful bits and bytes
<?php function cidr2mask($cidr) { return long2ip(-1 << (32 - (int)$cidr)); } ?>
No comments:
Post a Comment