<?php function ipsBetween($from, $to) { return ip2long($to) - ip2long($from); } echo ipsBetween("10.0.0.0", "10.0.0.50") . PHP_EOL; echo ipsBetween("10.0.0.0", "10.0.1.0") . PHP_EOL; echo ipsBetween("20.0.0.10", "20.0.1.0");
You have javascript disabled. You will not be able to edit any code.