What keywords would I use for multiple if statements? AKA select case in VB.
I want it in PHP, but it would probably be similar in C/C++.
thanks
Printable View
What keywords would I use for multiple if statements? AKA select case in VB.
I want it in PHP, but it would probably be similar in C/C++.
thanks
Do you mean a switch statement?:
Code:switch ($variable) {
case 5:
//dosomething
break;
case 6:
//dosomething
break
default:
//dosomething
}
Acctually that is exactily what i meant. thanks