Jump to content

Dynamic class names


Monkeymatt

Recommended Posts

I have a [b]static[/b] function that needs to know the name of the class that was used to call it (waaaaaaay up the inheritance chain). get_class() only gives me the name of the class that the static function is in, but I need the name of the top class that was called. Is there any way to do this.

Thanks,
Monkeymatt
Link to comment
https://forums.phpfreaks.com/topic/32516-dynamic-class-names/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.