leth/PHP-IPAddress

Add toArray method to NetworkAddress

dopesong opened this issue · 1 comments

It would be easer to get IPs array of network.

This may cause some pretty serious memory issues if you ran it on an IPv6 network! You can already get an iterator by using the 'getIterator' function, and there are a number of functions to check if an IP/subnet overlaps or lives within the network with the existing functions.