browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need PHP help?

Get answers from our community of PHP experts on BYTES! It's free.

Getting the class whose static method is invoked in PHP5

Chung Leong
Guest
 
Posts: n/a
#1: Jul 17 '05
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.





Closed Thread