note 46451 added to control-structures.switch
| From: | tomATcsbananaDOTcom at osu1 dot php dot net | Date: | Tue, 12 Oct 2004 05:18:37 +0000 |
| Subject: | note 46451 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78375@lists.php.net to get a copy of this message | ||
If you're using switch() inside a function and you're returning a $var inside each case,
you won't need to include break() as return() will end the execution of the switch and
function.
----
Manual Page -- http://www.php.net/manual/en/control-structures.switch.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46451
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46451&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46451&report=yes
Search -- http://master.php.net/manage/user-notes.php