Re: source of global variable

From: Date: Sat, 25 Aug 2001 21:46:29 +0000
Subject: Re: source of global variable
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64457@lists.php.net to get a copy of this message
I think I did misunderstand -- php is not like C where you declare things global both in the main program and in subroutines. If you are not in a function everything is automatically "global"; in php functions you need to declare variables to be global. --so you don't need it the problem looks like the call to strtotime('now') see http://www.php.net/manual/en/function.strtotime.php for the proper usage

« previous php.general (#64457) next »