Re: global variable.
| From: | Hugh Bothwell | Date: | Sat, 25 Aug 2001 13:17:15 +0000 |
| Subject: | Re: global variable. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64430@lists.php.net to get a copy of this message | ||
"Nafiseh Saberi" <nsaberi@iraninfocenter.net> wrote in message
news:200108260756.f7Q7up228742@persia.iraninfocenter.net...
>
> hi.
>
> I want to use glabal variable.
>
> <?
> global $a;
>
> ?>
> but it doesnot work??
... why do you think you need to use global here?
global is used *in a function* to let it see
external variables. You are not in a function,
so I don't see why you think you need it.