Re: calling static class functions using a function variable
| From: | Richard Lynch | Date: | Thu, 18 Jan 2001 07:07:01 +0000 |
| Subject: | Re: calling static class functions using a function variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35286@lists.php.net to get a copy of this message | ||
> $junk="xml::hi_handler";
> $junk();
>
> Fatal error: Call to undefined function: xml::hi_handler()
Perhaps this:
$j1 = "xml";
$j2 = "hi_handler";
$j1::$j2();
Wait. Are you saying you don't have an instance of an xml object?... I'm
surprised you can even call xml::hi_handler() without one in the first
place....
By Day: |By Night:
Don't miss the Zend Web Store's | There's not enough room here...
Grand Opening on January 23, 2001! | Start here:
http://www.zend.com | http://l-i-e.com/artists.htm