Tema: switch
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/08/2005, 14:39
Avatar de nicolaspar
nicolaspar
 
Fecha de Ingreso: noviembre-2004
Ubicación: Villa Ballester Bs-As|Ar
Mensajes: 2.002
Antigüedad: 19 años, 5 meses
Puntos: 34
http://ar.php.net/manual/en/control-...res.switch.php
Fijate ahi, podes hacer hasta:
$x = 18;$y = 6;
switch ($x) {
case ( ( ($y * 4) || (9 * 3) ) ? $x : false ):
echo "Si";break;
default:
echo "No";
}
igual, te aconsejo:
if( $cantidad==1 ){
echo "subir a categoria";
}elseif( $cantidad >100 && $cantidad<200 ){
echo "no funciona nada";
}
__________________
Mi punto de partida es Que Bueno Lo Nuevo