|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-24 07:11 UTC] hholzgra@php.net
[2002-01-24 21:54 UTC] yohgaki@php.net
[2002-02-24 03:37 UTC] roberto at berto dot net
[2002-02-24 06:44 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
Using "global" is very unfriendly (you have many of them and have to declare them everytime and everywhere). You change something and a mess is rising. I have this idea: <? global $foo; $foo="hello"; function a() { echo($foo); } ?> Today "global" located in the root do nothing. By my idea it should be "an absolute global" like $GLOBALS. Then you will be able to use this variable everywhere without defining it by global everytime.