note 74968 added to language.oop5.static

From: Date: Sun, 06 May 2007 23:34:45 +0000
Subject: note 74968 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-126268@lists.php.net to get a copy of this message
If you need a workaround for a static property overloading problem (see previous post) try this: <?php abstract class a { public static $lala = '1'; function __construct () { # echo self::$lala $vars = get_class_vars(get_class($this)); echo $vars['lala']; } } class b extends a { public static $lala = '2'; } new b(); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 86.101.157.101 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/74968 Del: integrated -- https://master.php.net/note/delete/74968/integrated Del: useless -- https://master.php.net/note/delete/74968/useless Del: bad code -- https://master.php.net/note/delete/74968/bad+code Del: spam -- https://master.php.net/note/delete/74968/spam Del: non-english -- https://master.php.net/note/delete/74968/non-english Del: in docs -- https://master.php.net/note/delete/74968/in+docs Del: other reasons-- https://master.php.net/note/delete/74968 Reject -- https://master.php.net/note/reject/74968 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126268) next »