Reply to Re: [PHP] calling static method within class

Your name:

Reply:


Posted by Greg Donald on 10/20/87 11:30

On Fri, 28 Oct 2005, blackwater dev wrote:

> I have a class that won't be instantiated...so basically just a bunch
> of static methods.
>
> How do I call one of the class' static methods from within another
> method? Can't use this, and self doesn't work...this is php4.

Same way you do it outside the class:

Foo::getMe();


--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

[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

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