note 94744 deleted from control-structures.break by danbrown
| From: | danbrown@php.net | Date: | Mon, 23 Nov 2009 15:35:41 +0000 |
| Subject: | note 94744 deleted from control-structures.break by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163203@lists.php.net to get a copy of this message | ||
Note Submitter: Tom Robinson trobin5on at gk5y5tem5 dot com
----
If you want to "break" out of an included file, and are not within a function, use the
return statement.
|| ...break doesn't work within included file...
|| include2.inc:
|| <?php
|| echo "$i";
|| break;
|| ?>