Skip to content

API krisp_prefix2mask

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

SYNOPSIS

(string) krisp_prefix2mask ((int) $cidr)

$cidr

returns dotted subnet mask about given CIDR

DESCRIPTION

returns dotted subnet mask about given CIDR.

RETURN VALUE

dotted address

EXAMPLE

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

See Also

krisp_netmask, krisp_network, krisp_broadcast, krisp_mask2prefix