note 103210 added to control-structures.switch
| From: | andrewrchambersatgmaildotcom at osu1 dot php dot net | Date: | Thu, 31 Mar 2011 21:09:22 +0000 |
| Subject: | note 103210 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178394@lists.php.net to get a copy of this message | ||
It's just a guess but a jump table for a switch statement that accepts strings would involve at
least a condition and a hash and for small switches, an if/else chain would be more efficient.
I'm eager to hear if/why I'm wrong though so please let me know.
----
Server IP: 69.147.83.197
Probable Submitter: 94.169.220.229
----
Manual Page -- http://www.php.net/manual/en/control-structures.switch.php
Edit -- https://master.php.net/note/edit/103210
Del: integrated -- https://master.php.net/note/delete/103210/integrated
Del: useless -- https://master.php.net/note/delete/103210/useless
Del: bad code -- https://master.php.net/note/delete/103210/bad+code
Del: spam -- https://master.php.net/note/delete/103210/spam
Del: non-english -- https://master.php.net/note/delete/103210/non-english
Del: in docs -- https://master.php.net/note/delete/103210/in+docs
Del: other reasons-- https://master.php.net/note/delete/103210
Reject -- https://master.php.net/note/reject/103210
Search -- https://master.php.net/manage/user-notes.php