è +veloce fare uno switch cercando o la prima variabile o la seconda o la terza che fare tre if per variabile per 20 possibilità ciascuna.Vabbé...ciaociao e grazie^____^![]()
è +veloce fare uno switch cercando o la prima variabile o la seconda o la terza che fare tre if per variabile per 20 possibilità ciascuna.Vabbé...ciaociao e grazie^____^![]()
GdR Online - http://lenar.it/
Yesterday is history. Tomorrow is mystery.
Today is a gift. That's why it's called the present
Giusto per curiosità puoi postare il codice che hai usato per lo switch?
eCommerceRS.NET - Commerciante, vendi on-line!
Il mio nick è mircov e non mirco!!!
a te:
switch($scheda['banda'] || $scheda[0]){
case 0: $scheda['banda'] = "Mar";
$banda="Mar";
$dir="mar"; break;
case 1: $scheda['banda'] = "Mortis";
$banda="Mortis";
$dir="mors"; break;
default:
$scheda['banda'] = "Niente";
}
ti ho risparmiato tutti i case fino a 25, ti ho messo soltanto i primi 2.
GdR Online - http://lenar.it/
Yesterday is history. Tomorrow is mystery.
Today is a gift. That's why it's called the present
Mea culpa, scusami!![]()
eCommerceRS.NET - Commerciante, vendi on-line!
Il mio nick è mircov e non mirco!!!