Re: global variable in function
- From: Geoff Berrow <blthecat@xxxxxxxxxxx>
- Date: Sat, 14 May 2005 17:48:29 +0100
I noticed that Message-ID: <hf8c81h348758kvt6864vpc8lp5otl7n5g@xxxxxxx>
from Andy Hassall contained the following:
><?php
>$myvariable = 'x';
>echo $myvariable;
>
>function f()
>{
> global $myvariable;
> echo $myvariable;
>}
>?>
and of course you'll have to call the function.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
.
- Follow-Ups:
- Re: global variable in function
- From: Andy Hassall
- Re: global variable in function
- References:
- global variable in function
- From: Japhy
- Re: global variable in function
- From: Andy Hassall
- global variable in function
- Prev by Date: Re: global variable in function
- Next by Date: Re: global variable in function
- Previous by thread: Re: global variable in function
- Next by thread: Re: global variable in function
- Index(es):
Relevant Pages
|
|