note 87591 deleted from function.get-class by thiago

From: Date: Thu, 11 Dec 2008 22:06:30 +0000
Subject: note 87591 deleted from function.get-class by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148051@lists.php.net to get a copy of this message
Note Submitter: sam ---- <?php class One { static function test() { echo get_class(new self()); } } One::test(); // produces: "One" // However: class Two extends One{} Two::test(); // this also produces "One", any way to fix this? ?>

« previous php.notes (#148051) next »