Hitterman
New Member
Need help regarding php
I was coding a vBulletin pHp file and I am confused a bit.
When we use case in php, does it works same as it works in C++? I mean, if we declare a case in php like this:
and then we will call it
Will it work?
Can somebody please explain me switch case in PHP? I am really confused after reading some tutorials.
I was coding a vBulletin pHp file and I am confused a bit.
When we use case in php, does it works same as it works in C++? I mean, if we declare a case in php like this:
Code:
[FONT=Courier New][COLOR=#007700]switch([/COLOR][COLOR=#0000bb]$_GET[/COLOR][COLOR=#007700][value[/COLOR][COLOR=#007700]])[/COLOR][/FONT]
Code:
case 1:
<code>
break;
Will it work?
Can somebody please explain me switch case in PHP? I am really confused after reading some tutorials.