Re: Static variable in a class method

From: Date: Thu, 14 Feb 2008 20:21:40 +0000
Subject: Re: Static variable in a class method
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-269314@lists.php.net to get a copy of this message
On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch <ceo@l-i-e.com> wrote: > On Thu, February 14, 2008 11:10 am, Eric Butera wrote: > > Just FYI the static keyword was quite popular in PHP4 for the > > singleton pattern. You could do something like: > > I have used and will continue to use the static keyword in functions, > and will most likely never use a class in PHP... > > If a website is complicated enough to need a class hierarchy, then > something is wrong in your Design. :-) :-) :-) > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/from/lynch > Yeah, I get a buck. So? > > Thanks for your opinion! I'll be filing that right into /dev/null. :D

« previous php.general (#269314) next »