Ver Mensaje Individual
  #12 (permalink)  
Antiguo 26/07/2006, 17:57
califa010
 
Fecha de Ingreso: enero-2006
Ubicación: Buenos Aires, Argentina
Mensajes: 299
Antigüedad: 18 años, 3 meses
Puntos: 5
Cita:
Iniciado por Nefertiter
//pones

}else if ()....

//tiene q ser

}elseif(){.....
¿Desde cuándo? Cualquiera de las dos opciones está bien y producen exactamente el mismo resultado. Entonces, ¿por qué tiene que ser de una manera y no de la otra?

Para más información:

Cita:
There may be several elseifs within the same if statement. The first elseif expression (if any) that evaluates to TRUE would be executed. In PHP, you can also write 'else if' (in two words) and the behavior would be identical to the one of 'elseif' (in a single word). The syntactic meaning is slightly different (if you're familiar with C, this is the same behavior) but the bottom line is that both would result in exactly the same behavior.
http://ar.php.net/manual/en/control-...res.elseif.php


Suerte
Califa