Hallo Roger.
[…] Gibt es eine Möglichkeit ein or in einen Case vom Switch zu bauen?
[…] ich habe nirgends im Internet oder in Büchern eine Antwort geschrieben, […]:
Wie wäre es mit dem Handbuch? Dort finden wir folgendes Konstrukt:
<?php
switch ($i) {
case 0:
case 1:
case 2:
echo "i ist kleiner als 3 aber nicht negativ";
break;
case 3:
echo "i ist gleich 3";
}
?>
Einen schönen Donnerstag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]