|
-
Aug 4th, 2007, 02:25 PM
#1
Thread Starter
Lively Member
function goto in php?
hi
i was looking for a function "goto" in php like we have in other languages but i can find nothing.
what is the solution for do that in php?
thanks for your help
-
Aug 4th, 2007, 03:38 PM
#2
Re: function goto in php?
There is no goto in PHP. You can use for,if and switch constructs instead. There were discussions of adding a goto like ability to PHP 6. I am unsure as to weather they were upheld.
First you would only be able to use them in loops. Second you would only be able to jump forward:
http://www.php.net/~derick/meeting-n...ml#adding-goto
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|