Re: global $GLOBALS ???

From: Date: Thu, 12 Oct 2000 06:39:28 +0000
Subject: Re: global $GLOBALS ???
Groups: php.general 
Request: Send a blank email to php-general+get-19758@lists.php.net to get a copy of this message
Well.... global variables if i'm not wrong become global to the particular function... for say : $var = "hi."; function myf() { global $var; echo "$var"; } function testf() { echo "$var"; } testf() when called shouldn't give anything out... cause var is not global to this function... hence all vars need to be defined global in the function... i'm not sure though... --- Berthold Tenhumberg <b.tenhumberg@web.de> wrote: > Is there a way to get all global variables in a > function? > -- > Berthold Tenhumberg > ICSmedia GmbH > Soester Strasse 13 Tel.: +49 251 6060-0 > mail: info@icsmedia.de > 48155 Muenster (Germany) Fax.: +49 251 6060-190 > http: www.icsmedia.de > > (live long and prosper...) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== To Find Out More About Me : http://mukul.tsx.org/ __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.general (#19758) next »