note 107586 deleted from language.oop5.static by danbrown

From: Date: Thu, 10 May 2012 20:41:56 +0000
Subject: note 107586 deleted from language.oop5.static by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187824@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Regarding [michael at digitalgnosis dot removethis dot com 15-Dec-2004 11:09]; changing "self" to "static" works as desired (I really don't know why) in your example below: <?php class Base { static function Foo () { static::Bar(); } } class Derived extends Base { function Bar () { echo "Derived::Bar()"; } } Derived::Foo(); // this DOES print "Derived::Bar()" ?>

« previous php.notes (#187824) next »