Mannigfaltige Verzweigung in php
Am Freitag, 18. Jun 2010 im Topic 'E.T. phone home'
(bedingte Ausführung #2)
switch ($i) {
Quelle: http://www.php.net/manual/de/control-structures.switch.php
switch ($i) {
case "apple":
echo "i is apple";
break;
case "bar":
echo "i is bar";
break;
case "cake":
echo "i is cake";
break;
}echo "i is apple";
break;
case "bar":
echo "i is bar";
break;
case "cake":
echo "i is cake";
break;