Parece estar todo bien, muestra el contenido de las variables para ver si tiene lo que debe tener:
Código PHP:
<?php
function rangos($rangos,$fecha)
{
foreach ($rangos as $row)
{
var_dump($row);
$fecha1=strtotime($row[3]);
$fecha2=strtotime($row[4]);
if (($fecha >= $fecha1) || ($fecha <= $fecha2))
return true;
}
return false;
}
?>