Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/08/2009, 23:35
Avatar de echevemaster
echevemaster
 
Fecha de Ingreso: diciembre-2002
Ubicación: Carabobo, Venezuela
Mensajes: 84
Antigüedad: 21 años, 4 meses
Puntos: 1
De acuerdo Respuesta: Tamaño archivo php y tiempo de proceso

Sacado de PHP.net
Cita:
It is important to understand how the switch statement is executed in order to avoid mistakes. The switch statement executes line by line (actually, statement by statement). In the beginning, no code is executed. Only when a case statement is found with a value that matches the value of the switch expression does PHP begin to execute the statements. PHP continues to execute the statements until the end of the switch block, or the first time it sees a break statement. If you don't write a break statement at the end of a case's statement list, PHP will go on executing the statements of the following case
en español

Cita:
Es importante comprender cómo la sentencia switch se ejecuta con el fin de evitar errores. La sentencia switch ejecuta línea por línea (realmente, sentencia a sentencia). En el principio, no se ejecuta el código. Sólo cuando una sentencia case se encuentra con un valor que coincide con el valor de la expresión switch PHP comienza a ejecutar las instrucciones. PHP continúa ejecutando las sentencias hasta el final del bloque switch, o la primera vez que vea una sentencia break. Si no se escribe una sentencia break al final de la lista de sentencias case, PHP seguirá ejecutando las sentencias del caso siguiente
__________________
En el codigo esta la solucion, pero no la encuentro por ningun lado.