Results 1 to 2 of 2

Thread: function goto in php?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    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

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width