Jump to content

Case?


lpxxfaintxx

Recommended Posts

[!--quoteo(post=359241:date=Mar 28 2006, 07:15 AM:name=lpxxfaintxx)--][div class=\'quotetop\']QUOTE(lpxxfaintxx @ Mar 28 2006, 07:15 AM) [snapback]359241[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I forgot where I saw it, but I've seen scripts with like

[code]
$_GET['goto']

case "1"

include "index1.php"

case "2"

include "index2.php" [/code]

Does anyone have a tutorial on how to use that? I'm pretty sure the code above is totally worthless.
[/quote]


[a href=\"http://www.php.net/switch\" target=\"_blank\"]http://www.php.net/switch[/a]
Link to comment
https://forums.phpfreaks.com/topic/6004-case/#findComment-21544
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.