|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-02 20:36 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ I want to extract the class name of a inherited class with a inherited static method. I've tried that in a lot of ways, but I didn't get it. Is it possible at all? Reproduce code: --------------- class TestParent { static function getClass() { return get_class(); } } class TestChild extends TestParent { } echo TestChild::getClass(); Expected result: ---------------- TestChild Actual result: -------------- TestParent