Bug #15202: not a bug, but new feature request

From: Date: Thu, 24 Jan 2002 11:20:42 +0000
Subject: Bug #15202: not a bug, but new feature request
Groups: php.dev 
Request: Send a blank email to php-dev+get-77984@lists.php.net to get a copy of this message
From: joyeux@1984.cz Operating system: Linux PHP version: 4.1.1 PHP Bug Type: Feature/Change Request Bug description: not a bug, but new feature request 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. -- Edit bug report at: http://bugs.php.net/?id=15202&edit=1

« previous php.dev (#77984) next »