![]() |
|
|
+ Search |
![]()
|
Aug 5th, 1999 22:41
Nathan Wallace, halim@admin1.mlcc.com.my, Rasmus Lerdorf, Aaron Leon Kaplan
PHP switch works basically the same as C switch.
switch ($table) {
case '1' : statement;
break;
case '2' : statement;
break;
}
To have two statements execute the same code simply do:
switch ($table) {
case '1':
case '2':
statement;
break;
}