note 97740 added to language.oop5.paamayim-nekudotayim

From: Date: Wed, 05 May 2010 20:50:18 +0000
Subject: note 97740 added to language.oop5.paamayim-nekudotayim
Groups: php.notes 
Request: Send a blank email to php-notes+get-168987@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/97740 Del: integrated -- https://master.php.net/note/delete/97740/integrated Del: useless -- https://master.php.net/note/delete/97740/useless Del: bad code -- https://master.php.net/note/delete/97740/bad+code Del: spam -- https://master.php.net/note/delete/97740/spam Del: non-english -- https://master.php.net/note/delete/97740/non-english Del: in docs -- https://master.php.net/note/delete/97740/in+docs Del: other reasons-- https://master.php.net/note/delete/97740 Reject -- https://master.php.net/note/reject/97740 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168987) next »