note 44214 added to language.constants.predefined

From: Date: Sun, 18 Jul 2004 12:29:10 +0000
Subject: note 44214 added to language.constants.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-73479@lists.php.net to get a copy of this message
Note that __CLASS__ contains the class it is called in; in lowercase. So the code: class A { function showclass() { echo __CLASS__; } } class B extends A { } $a = new A(); $b = new B(); $a->showclass(); $b->showclass(); A::showclass(); B::showclass(); results in "aaaa"; ---- Manual Page -- http://www.php.net/manual/en/language.constants.predefined.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44214 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44214&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44214&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73479) next »