¡@

Home 

php Programming Glossary: netmatch

Match IPv4 address given IP range/mask?

http://stackoverflow.com/questions/10421613/match-ipv4-address-given-ip-range-mask

an answer from php.net and made it better. function netMatch network ip network trim network orig_network network ip trim.. n else echo DID NOT MATCH n echo CLASS A TESTS n ech netMatch '10.168.1.0 10.168.1.100' '10.168.1.90' ech netMatch '10.168... n ech netMatch '10.168.1.0 10.168.1.100' '10.168.1.90' ech netMatch '10.168. . ' '10.168.1.90' ech netMatch '10.168.0.0 16' '10.168.1.90'..