note 45812 added to language.oop5.constants

From: Date: Mon, 20 Sep 2004 05:44:57 +0000
Subject: note 45812 added to language.oop5.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-76999@lists.php.net to get a copy of this message
note that you can retrieve a class constant (among other useful things) using reflection <?php class test { const my = 'hi world'; } $refl = new ReflectionClass('test'); echo $refl->getConstant('my'); ?> ---- Manual Page -- http://www.php.net/manual/en/language.oop5.constants.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45812 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45812&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45812&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76999) next »