On Thursday 14 March 2002 21:53, George Nicolae wrote:
> I have the following code:
> function a($var_a)
> function b()
> global $var_a;
> echo $var_a;
> a("hello word!");
> why function b() don't echo anything?
Because $var_a has not, at any point, been defined in the global scope.
> can I resolve this problem without
> calling b($var_a)?
I'm curious as to what you're trying to achieve. Could you enlighten me?
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
"I will make no bargains with terrorist hardware."
-- Peter da Silva
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php