Re: feature request: user-defined superglobals

From: Date: Sat, 23 Aug 2003 21:58:49 +0000
Subject: Re: feature request: user-defined superglobals
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-4152@lists.php.net to get a copy of this message
On Sat, 2003-08-23 at 21:15, Matthias Nothhaft wrote: [...User-land superglobals...] > $_MYFW->method_a(); is nicer than $GLOBALS['_MYFW']->method_a(); > and also shorter for vars u're using very often... Use the singleton pattern: MYFW::getInstance()->method_a(); Global variables are evil. - Timm

« previous php.internals (#4152) next »