Hiya, easiest way that I can think of to do this would be to split them up into an array, and check that the provided IP is between the number range.
<?php
// IP Range: 192.168.0.1 - 192.168.12.255
// Provided IP: 192.168.11.196
$IPStart = explode(".", "192.168.0.1");
$IPFinish = explode(".", "192.168.12.254");
$IPProv = explode(".", "192.168.11.196");
$Between = true;
for($i = 0; $i < 4; $i++) {
if($IPStart[$i] > $IPProv[$i] || $IPFinish[$i] < $IPProv[$i]) {
$Between = false;
}
}
if($Between !== false) {
echo "Match";
} else {
echo "No Match!";
}
?>