Detecting if an IP address is in a certain range in PHP


Here is another trick that can make your job easier!   If you ever need to detect whether an IP address (let’s say is inside a certain IP range/subnet (let’s say, you can use the following function in PHP : /** * Check IPv4 address is within a range * * @param string […]