Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/05/2009, 18:52
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 6 meses
Puntos: 416
Respuesta: Reemplazar If Por Switch

Código php:
Ver original
  1. switch(true) {
  2.  
  3. case ($cantpost >= 0 && $cantpost <= 10):
  4. //asdoasda
  5. break;
  6.  
  7. case ($cantpost >= 11 && $cantpost <= 50):
  8. //asd
  9. break;
  10.  
  11. }