Re: Static variable in a class method
| From: | Zoltán Németh | Date: | Thu, 14 Feb 2008 20:14:36 +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-269313@lists.php.net to get a copy of this message | ||
2008. 02. 14, csütörtök keltezéssel 14.07-kor Richard Lynch ezt írta:
> 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. :-) :-) :-)
who said we make websites with all those classes and frameworks? ;)
greets
Zoltán Németh
>
> --
> 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?
>