Re: Simple function question

From: Date: Thu, 09 May 2002 19:11:32 +0000
Subject: Re: Simple function question
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13661@lists.php.net to get a copy of this message
At 03:02 PM 5/9/02 -0400, Matt Babineau wrote: >Ok, I just read a section in a book about functions. In my cost I have >some variables set: > >$var1 = "1"; > >And I have a function I wrote that needs to utilize that variable. > >function runvar() { > query database looking for $var1; > } function runvar() { global $var1; query database looking for $var1; }

« previous php.windows (#13661) next »