By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Getting the class whose static method is invoked in PHP5

P: n/a
Say you have class A:

class A {
static function Ponder() {
/* ... */
}
}

and class B, which extends A:

class B extends A {
/ *... */
}

Now if I call B::Ponder(), is there anyway for Ponder() to know that it was
invoked from class B? What I'm trying to do is use to reflection API in an
ancestor class to introspect its descendants.
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.