Re: [PHP] functions and global variables

2010-07-19 Thread Simcha Younger
On Mon, 19 Jul 2010 13:37:12 +0530 Shreyas Agasthya wrote: > My two cents on this one. > > Modify the $name within the function and print it. > > Modify the$name outside the function (means the non-global-declared $name) > and print it. You will know the difference. > > --Shreyas > > On M

Re: [PHP] functions and global variables

2010-07-19 Thread Shreyas Agasthya
My two cents on this one. Modify the $name within the function and print it. Modify the$name outside the function (means the non-global-declared $name) and print it. You will know the difference. --Shreyas On Mon, Jul 19, 2010 at 7:41 AM, Paul M Foster wrote: > On Sun, Jul 18, 2010 at 06:37:30

Re: [PHP] functions and global variables

2010-07-18 Thread Paul M Foster
On Sun, Jul 18, 2010 at 06:37:30PM -0400, David Mehler wrote: > Hello, > I've got a file with a variable declared in it. For purposes of this post: > > $name = $_POST['name']; > > Now a little later in the same file I have a custom function call that > outputs some information. In that informati