As you know, the range () function can get the range between a number and another,
how to do the same with an IP address as an example.
$range_one = "1.1.1.1";
$range_two = "1.1.3.5";
print_r( range($range_one, $range_two) );
I was thinking about using the explode () function to explode the "." and separate each number, and then use the range with each of them, and then combine them all together, for me it is a little difficult, and I think there is an easier way to do this
source
share