-
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
-
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. :D
-
Re: Call functions etc?
oops that not value.. that's variable.. eheheh. pass variables by value or by reference. :)
-
Re: Call functions etc?
also.. it would help if you would enclose the bolded $Number-1 in parenthesis so that it would work also. :)