1 Aug 2004 02:28
Re: [PHP-DEV] GOTO operator
Andrey Hristov <php <at> hristov.com>
2004-08-01 00:28:02 GMT
2004-08-01 00:28:02 GMT
Sara Golemon wrote:
> Thanks for the pointers, I at least see what I need to be exploring now
> (though I havn't sat down to unfold its meaning yet). Cetainly the
> implementation given earlier needs work whether its to make it work as
> advertised or in the more limited fashion suggested in other posts.
>
> I intend to put some work into it regardless of whether it'll be included or
> not. As I mentioned originally, this entire effort was meant as a learning
> exercise, and it's doing that job. If it's used: great. If not, it'll just
> stay where it is and those who want it can still patch it in.
>
How does the GOTO implementation handle this
script1.php
<?php
do_some_stuff();
include script2.php;
label:
echo "Hello"
?>
script2.php:
<?php
declare_some_funcs();
.... some code ...
if (some_cond) {
goto label;
(Continue reading)
RSS Feed