note 68105 added to function.constant

From: Date: Thu, 13 Jul 2006 13:01:17 +0000
Subject: note 68105 added to function.constant
Groups: php.notes 
Request: Send a blank email to php-notes+get-114731@lists.php.net to get a copy of this message
To access the value of a class constant use the following technique. <?php class a { const b = 'c'; } echo constant('a::b'); // output: c ?> ---- Server IP: 85.116.0.130 Probable Submitter: 85.133.19.16 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.constant.php Edit -- http://master.php.net/note/edit/68105 Del: integrated -- http://master.php.net/note/delete/68105/integrated Del: useless -- http://master.php.net/note/delete/68105/useless Del: bad code -- http://master.php.net/note/delete/68105/bad+code Del: spam -- http://master.php.net/note/delete/68105/spam Del: non-english -- http://master.php.net/note/delete/68105/non-english Del: in docs -- http://master.php.net/note/delete/68105/in+docs Del: other reasons-- http://master.php.net/note/delete/68105 Reject -- http://master.php.net/note/reject/68105 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114731) next »