note 89676 added to expect.examples-usage
| From: | AjaySharma at osu1 dot php dot net | Date: | Wed, 18 Mar 2009 23:20:43 +0000 |
| Subject: | note 89676 added to expect.examples-usage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152114@lists.php.net to get a copy of this message | ||
In Example #2 there's a slight bug with the break's. The code is 3 levels deep:
<?php
while (...)
switch (...)
switch (...)
?>
In the deepest switch() statment there's a "break 2;" and that should be a
"break 3;" to jump out of the loop altogether when you're done. If you don't,
you only jump out to the parent switch statement.
----
Server IP: 64.71.164.2
Probable Submitter: 71.104.210.22
----
Manual Page -- http://www.php.net/manual/en/expect.examples-usage.php
Edit -- https://master.php.net/note/edit/89676
Del: integrated -- https://master.php.net/note/delete/89676/integrated
Del: useless -- https://master.php.net/note/delete/89676/useless
Del: bad code -- https://master.php.net/note/delete/89676/bad+code
Del: spam -- https://master.php.net/note/delete/89676/spam
Del: non-english -- https://master.php.net/note/delete/89676/non-english
Del: in docs -- https://master.php.net/note/delete/89676/in+docs
Del: other reasons-- https://master.php.net/note/delete/89676
Reject -- https://master.php.net/note/reject/89676
Search -- https://master.php.net/manage/user-notes.php