note 92440 added to control-structures.switch
| From: | PiyushPatel at osu1 dot php dot net | Date: | Fri, 24 Jul 2009 07:21:32 +0000 |
| Subject: | note 92440 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158677@lists.php.net to get a copy of this message | ||
You may also call different functions within switch as per the action you get on the page.
switch($_POST['action']) {
case 'sum':
execSum();
break;
case 'sub':
execSub();
break;
case 'mul':
execMul();
break;
default:
defaultAction();
break;
}
----
Server IP: 59.162.86.33
Probable Submitter: 202.131.106.130
----
Manual Page -- http://www.php.net/manual/en/control-structures.switch.php
Edit -- https://master.php.net/note/edit/92440
Del: integrated -- https://master.php.net/note/delete/92440/integrated
Del: useless -- https://master.php.net/note/delete/92440/useless
Del: bad code -- https://master.php.net/note/delete/92440/bad+code
Del: spam -- https://master.php.net/note/delete/92440/spam
Del: non-english -- https://master.php.net/note/delete/92440/non-english
Del: in docs -- https://master.php.net/note/delete/92440/in+docs
Del: other reasons-- https://master.php.net/note/delete/92440
Reject -- https://master.php.net/note/reject/92440
Search -- https://master.php.net/manage/user-notes.php