You are here: Re: Static method to get class variable (PHP4) « All PHP « IT news, forums, messages
Re: Static method to get class variable (PHP4)

Posted by robert on 05/31/06 15:23

"Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote in message
news:447dab25$1_1@news.cybercity.ch...
| Sjoerd schrieb:
| > The variable $types does not exist until an instance of this class is
| > made:
|
| Thank you - so I misunderstood the concept of static variables; I
| assumed that if methods can be called statically this was also possible
| for properties.

no, i think you understand them correctly. however, ifaik, they are only
supported starting in php 5. sjoerd's post is appropriate for php < 5.

hth,

me

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация