Reply to calling static method within class

Your name:

Reply:


Posted by blackwater dev on 10/02/50 11:30

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.

Thanks.

Class Foo{

function getMe(){
return "me";

}

function getUs(){
$us=xxx::getMe();
$us.="& me";

}
}

echo Foo::getUs();

[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

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