Re: global $GLOBALS ??? 2nd...
| From: | Wico de Leeuw | Date: | Thu, 12 Oct 2000 08:27:28 +0000 |
| Subject: | Re: global $GLOBALS ??? 2nd... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19779@lists.php.net to get a copy of this message | ||
At 10:25 12-10-00 +0200, Wico de Leeuw wrote:
At 09:44 12-10-00 +0200, Berthold Tenhumberg wrote:ho = echo but you guys will figure that out :) If they will fix the heating device overhere then maybe my fingers will hit all the (right) keys ;)Is there a way to get all global variables in a function readable? For example: 1 function bla() {Hiya Dirty but works, But why won't you just use global $var name.... this is *alot* of overhead: function Bla () {2 global $GLOBALS; 3 echo $my_global_var;4 }foreach($GLOBALS AS $name => $value) { $$name = $value; } ho $my_global_var;}
Greetz, WicoLine 2 is not working... Why? -- Berthold Tenhumberg (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-- 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