Re: global variable again?
| From: | Chris Hayes | Date: | Sat, 25 Aug 2001 10:21:50 +0000 |
| Subject: | Re: global variable again? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64422@lists.php.net to get a copy of this message | ||
Look in the manual:
language.variables.scope.html
'global' is meant to use inside a function for accessing vars that are not
in a function (the main part).
> I use global in this form:
>
> <?
> global $a;
> $a=strtotime('now');
> .
> .
> .
> echo $a; but in this line dont echo $a
Using global this way does not make sense.
Or you are not telling us about functions on this page.
Chris H.
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------