![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/05/2009, 18:52
|
![Avatar de Ronruby](http://static.forosdelweb.com/customavatars/avatar249338_1.gif) | | | 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 originalswitch(true) { case ($cantpost >= 0 && $cantpost <= 10): //asdoasda break; case ($cantpost >= 11 && $cantpost <= 50): //asd break; }
|