Re: global
- From: Andy Hassall <andy@xxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 21:38:50 +0100
On Wed, 29 Jun 2005 20:35:18 +0000 (UTC), mark <mark@xxxxxxxxxxxxx> wrote:
>$myvar = "test";
>
>function myfunc() {
>global $myvar;
>echo $myvar;
>}
>
>However, when echoing $myvar it is blank. Can anybody tell me what I am
>doing wrong?
Post a runnable piece of code that demonstrates the problem - the one you just
posted does not call the function.
--
Andy Hassall / <andy@xxxxxxxxxxx> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
.
- Follow-Ups:
- Re: global
- From: mark
- Re: global
- References:
- global
- From: mark
- global
- Prev by Date: global
- Next by Date: Easy question
- Previous by thread: global
- Next by thread: Re: global
- Index(es):
Relevant Pages
|