calling static method within class

From: Date: Fri, 28 Oct 2005 17:12:30 +0000
Subject: calling static method within class
Groups: php.general 
Request: Send a blank email to php-general+get-224787@lists.php.net to get a copy of this message
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();

« previous php.general (#224787) next »