[PHP] Re: newbie: a couple basic questions

2002-07-09 Thread Alexander Ross
Thank you kindly ... "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >1) in a fuction, does a return statment automatically exit the function as > >well? > > Yes. Nothing more will get executed inside the function after the "return;" > > Some purists claim that

[PHP] Re: newbie: a couple basic questions

2002-07-09 Thread Richard Lynch
>1) in a fuction, does a return statment automatically exit the function as >well? Yes. Nothing more will get executed inside the function after the "return;" Some purists claim that you should *NEVER* have a return *ANYWHERE* except the last line of a function. EG: # WRONG function divide($n