Skip to content

API krisp_mask2prefix

JoungKyun Kim edited this page Jul 17, 2016 · 1 revision

SYNOPSIS

(unsigned int) krisp_mask2prefix ((string) $mask)

$mask

dotted network mask

DESCRIPTION

returns CIDR value about given network mask.

RETURN VALUE

integer

EXAMPLE

<?php
# resutls:
#     27
print_r (krisp_mask2prefix ('255.255.255.224'));
?>

See Also

krisp_netmask, krisp_network, krisp_broadcast, krisp_prefix2mask