194.125.224.0-194.125.227.255
$range = [
'from' => ip2long('194.125.224.0'),
'to' => ip2long('194.125.227.255')
];
$ip = ip2long('194.125.225.124');
echo ($ip >= $range['from'] && $ip <= $range['to']) ? 'yes' : 'no';
$ip = $_SERVER['REMOTE_ADDR'];
for($q = 0; $q < $i; $q++) {
if($black_list[$q][0] <= $ip and $ip <= $black_list[$q][1]) {
echo 'ok';
}
}