NYCPHP Meetup

NYPHP.org

[nycphp-talk] Static Method Referencing

Adam Maccabee Trachtenberg adam at trachtenberg.com
Mon Feb 14 19:05:18 EST 2005


On Mon, 14 Feb 2005, Hans Zaunere wrote:

> I this expected behavior or a bug?  Do I have to set the method's
> name to a $tmp variable before using it as a reference to a static
> method?  Is there some other way to do it that I'm forgetting?

self::staticMethod('foo');

Pages 28-9, 35 in "Upgrading to PHP 5." :)

-adam

-- 
adam at trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list