Reply to Re: Classes without instances

Your name:

Reply:


Posted by Thomas Mlynarczyk on 11/19/05 00:01

Also sprach Meião:

>> class myLib { public static function myFunc() { /* do stuff */ } }
>> class myLib { public function myFunc() { /* do stuff */ } }

> in this first case the function myFunc() will be available without
> instantiation. then you can call myLib::myFunc()
> second case you can't
> In PHP 4 it didn't matter, you could always (?) call a function
> staticly

So it's just that PHP5 is more strict about certain things.

Thanks,
Thomas

[Back to original 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

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