note 95783 added to reflectionclass.getstaticpropertyvalue

From: Date: Thu, 21 Jan 2010 20:05:40 +0000
Subject: note 95783 added to reflectionclass.getstaticpropertyvalue
Groups: php.notes 
Request: Send a blank email to php-notes+get-165176@lists.php.net to get a copy of this message
If you want to change a static property of a variable class... PHP 5.2 <?php $reflection = new ReflectionClass($className); $staticPropertyReference = & $reflection->getStaticPropertyValue($staticPropertyName); $staticPropertyReference = 'new value'; ?> PHP 5.3 <?php $className::$$classProperty ?> ---- Server IP: 69.147.83.197 Probable Submitter: 190.192.21.65 ---- Manual Page -- http://www.php.net/manual/en/reflectionclass.getstaticpropertyvalue.php Edit -- https://master.php.net/note/edit/95783 Del: integrated -- https://master.php.net/note/delete/95783/integrated Del: useless -- https://master.php.net/note/delete/95783/useless Del: bad code -- https://master.php.net/note/delete/95783/bad+code Del: spam -- https://master.php.net/note/delete/95783/spam Del: non-english -- https://master.php.net/note/delete/95783/non-english Del: in docs -- https://master.php.net/note/delete/95783/in+docs Del: other reasons-- https://master.php.net/note/delete/95783 Reject -- https://master.php.net/note/reject/95783 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165176) next »