[UPHPU] $GLOBALS and global best practices
Joseph Scott
joseph at josephscott.org
Tue Nov 8 09:53:25 MST 2011
On Tue, Nov 8, 2011 at 9:23 AM, Sean Thayne <sean at skyseek.com> wrote:
> I've recently started using it and it's quite handy. Also with the new
> static keyword (PHP 5.3+) You can use the word static instead of self.
> Which will protected your instances if your extending. So you could have a
> SingletonBase class that your settings class would extend. And you could
> have 10 classes extending that SingletonBase.
For completeness, the static keyword is not new to PHP 5.3. The
context in which you are talking about using it is.
--
Joseph Scott
joseph at josephscott.org
http://josephscott.org/
More information about the UPHPU
mailing list