code:
$ipaddress='10.0.28.49'
$iparray='10.0.0.0/8'
$rc = isiniprange($ipaddress,$iparray)
? $rc

Please read TCP/IP Primer, Part I - IP Addresses to determine the correct IP addresses, network IDs, and subnet masks
_________________________
There are two types of vessels, submarines and targets.