Its a race, to build your base! Steal Construction Materials from your enemy's base and secure them at the various 'Capture Pads' located in your team's base.
<br /><br />
OBJECTIVES:
<br
A switch in PHP allows us to to take certain actions depending on the value of a certain variable, as in the following example, where we check the value of the
$pa variable:
switch($pa) {
case "showpage":
showpage($pid, $page);
break;
case "list_pages_categories":
list_pages_categories($cid);
break;
default:
list_pages();
break;
}
In case $pa has the value "showpage", we call the showpage() function, in case it has the value "list_pages_categories", we call the list_pages_categories() function. If $pa does not have any of
these two values, or any value at all, we enter the default case and call list_pages(). See also PHP control
structures.
Switch statements are often used in module development (especially in the module administration functions, see Section 21.4). So, if you declared in a module admin
case file a switch like:
switch($func) {
case "func-one":
funct-one();
break;
}