note 47996 deleted from language.oop5.constants by felipe

From: Date: Sat, 15 Dec 2007 02:11:04 +0000
Subject: note 47996 deleted from language.oop5.constants by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133531@lists.php.net to get a copy of this message
Note Submitter: pezskwerl at gmail dot com ---- Unlike static members, constants always have public visibility, so trying to set a constant's visibility won't work, such as in this example: <?php class MyClass { protected static $nonConstant = "this will work"; protected const constant = "this won't work"; } ?>

« previous php.notes (#133531) next »