note 71892 added to control-structures.continue
| From: | tufan dot oezduman at gmail dot com | Date: | Thu, 21 Dec 2006 12:28:42 +0000 |
| Subject: | note 71892 added to control-structures.continue | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120823@lists.php.net to get a copy of this message | ||
a possible explanation for the behavior of continue in included scripts mentioned by greg and
dedlfix above may be the following line of the "return" documentation: "If the
current script file was include()ed or require()ed, then control is passed back to the calling
file."
The example of greg produces an error since page2.php does not contain any loop-operations.
So the only way to give the control back to the loop-operation in page1.php would be a return.
----
Server IP: 212.124.37.9
Probable Submitter: 192.166.195.193 (proxied: 10.240.12.7)
----
Manual Page -- http://www.php.net/manual/en/control-structures.continue.php
Edit -- https://master.php.net/note/edit/71892
Del: integrated -- https://master.php.net/note/delete/71892/integrated
Del: useless -- https://master.php.net/note/delete/71892/useless
Del: bad code -- https://master.php.net/note/delete/71892/bad+code
Del: spam -- https://master.php.net/note/delete/71892/spam
Del: non-english -- https://master.php.net/note/delete/71892/non-english
Del: in docs -- https://master.php.net/note/delete/71892/in+docs
Del: other reasons-- https://master.php.net/note/delete/71892
Reject -- https://master.php.net/note/reject/71892
Search -- https://master.php.net/manage/user-notes.php