I'm +1 on goto with static labels.
regardless of whether it ends up in PHP or not I think Sara deserves a gold star alone for the large number of very value info/explainations she continues to post here. If I had to name one person off the list from whose posts I had gained more insight & knowledge regarding programming in general and PHP in particular, Sara would it.
case in point: I now have a firm grasp of the term 'bork'! ;-)
in short: nice one :-)
Sara Golemon wrote:
Out of curiosity, I wonder which other features would similarly not work
when
eval()'ed...???
Anything involving unbalanced braces would bork:
eval('if ($a > 5) {'); do_stuff(); }
As would any looping initializer like this:
eval('foreach($foo as $bar)'); do_itteration($bar);
While I havn't tested it, I can't imagine this working:
switch ($foo) { eval('case "bar": do_bar(); break;'); case 'baz': do_baz(); break; default: do_default(); }
-Sara
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php