* Thus wrote Nitin ([EMAIL PROTECTED]):
> Hi all,
>
> I was wondering, if there's any way to achieve 'goto "label":' using PHP
The closest you'll get to label's in php is the break statement.
while (loop) {
while (loop) {
break 2; // leave 2 loops
}
while (loop) {
break; // leav
[snip]
I was wondering, if there's any way to achieve 'goto "label":' using PHP
[/snip]
Are you trying to go to a section of code to perform some operations on
current variables? If so use functions
http://us3.php.net/manual/en/ref.funchand.php . If you have some sort of
decisive mechanism use swi
2 matches
Mail list logo