note 97739 added to language.oop5.paamayim-nekudotayim

From: Date: Wed, 05 May 2010 20:49:53 +0000
Subject: note 97739 added to language.oop5.paamayim-nekudotayim
Groups: php.notes 
Request: Send a blank email to php-notes+get-168986@lists.php.net to get a copy of this message
As of php 5.3.0, you can use 'static' as scope value as in below example (add flexibility to inheritance mechanism compared to 'self' keyword...) <?php class A { const C = 'constA'; public function m() { echo static::C; } } class B extends A { const C = 'constB'; } $b = new B(); $b->m(); // output: constB ---- Server IP: 130.206.1.5 Probable Submitter: 81.202.17.104 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php Edit -- https://master.php.net/note/edit/97739 Del: integrated -- https://master.php.net/note/delete/97739/integrated Del: useless -- https://master.php.net/note/delete/97739/useless Del: bad code -- https://master.php.net/note/delete/97739/bad+code Del: spam -- https://master.php.net/note/delete/97739/spam Del: non-english -- https://master.php.net/note/delete/97739/non-english Del: in docs -- https://master.php.net/note/delete/97739/in+docs Del: other reasons-- https://master.php.net/note/delete/97739 Reject -- https://master.php.net/note/reject/97739 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168986) next »