Re: Static variable in a class method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux