Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/10/2008, 21:09
Avatar de korg1988
korg1988
 
Fecha de Ingreso: junio-2006
Ubicación: Santa Fe, Argentina
Mensajes: 825
Antigüedad: 17 años, 10 meses
Puntos: 19
De acuerdo Respuesta: buscar fecha en un array?

Código PHP:
$index 0;
$encontrado false;

while(
$encontrado == false)
{
    if(
$fechas[$index] == "FECHA_A_BUSCAR") {
        
$encontrado true;
        
//...
        //ACA PONES EL CODIGO EN CASO DE QUE SE ENCUENTRE LA FECHA
        //...
    
} else {
        if(++
$index == sizeof($fechas)) {
            
//para dar finalizacion al bucle porque
            //se terminaron las fechas en el array $fechas
            
$encontrado true;

        }
    }