Results 1 to 4 of 4

Thread: Call functions etc?

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Call functions etc?

    Is there a way in php that i can call a different sub or something like that? Or does the code have to go in order?

    also, whats wrong with this line:
    echo ("Name ", $Number - 1, " is $Name[$Number]</br>");
    i know its the bolded words, but i dont know how to fix

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Call functions etc?

    why is it comma.. for the string concatenation?.. isn't it supposed to be a dot( . )... and yes there is a facility for that. even pass values by value or reference. ... all it has to do is be passed by the interpreter or something (anyone correct me on this if i'm wrong since I'm a noob also )... then that function will be accessible throughout the script... and it doesn't have to go in order... read help.

    there's even a very nice include function where you can include a file in which all functions are declared.

  3. #3
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Call functions etc?

    oops that not value.. that's variable.. eheheh. pass variables by value or by reference.

  4. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Call functions etc?

    also.. it would help if you would enclose the bolded $Number-1 in parenthesis so that it would work also.

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