devils advocate:
what happens when I want to place a 'goto' label just before a while or foreach loop (upon which I haven't put a label)? I ask because I assume that the following 2
statements should be identical no:?


I think there would be no such thing as a 'goto' or 'break' label. There would be just labels. You could use them with 'goto' and/or 'break' together:

goto LABEL:

...

LABEL:while (cond) {
  if (cond)
    break LABEL;
}

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to