I am looking for a function that give me this result:
127.0.0.0-127.0.0.255
With only this ip:
127.0.0.1 or 127.0.0.50 ...
Function will look like:
function transform_ip($ip) {
// Method to transform ip the ip-range
// Specify Start IP and End IP
return $result;
}
echo transform_ip("127.0.0.66"); // result: 127.0.0.0-127.0.0.255