|   | 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 Group All rights reserved. | Last updated: Fri Oct 31 04: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