Ciao,
vorrei trasformare il codice seguente in un foreach() ma non capisco come modificarlo...
Questo è il codice che vorrei variare:
Codice PHP:
switch ($yDati)
{
case 'AASS': { return $AASS = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'AASS': { return $AAS = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'AAC': { return $AAC = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'AAD': { return $AAD = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'AADD': { return $AADD = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'ACSS': { return $ACSS = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
case 'AS': { return $AS = Tipo($Tipo, $Posi, $Stil, $Comp); break; }
};
Il codice contiene molti più case ma per brevità l'ho tagliato.
Grazie


BottyE (ChiesaAperta)