Re: Static variable in a class method

From: Date: Thu, 14 Feb 2008 20:07:23 +0000
Subject: Re: Static variable in a class method
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-269308@lists.php.net to get a copy of this message
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?

« previous php.general (#269308) next »