note 49155 deleted from language.oop5.constants by felipe

From: Date: Sat, 15 Dec 2007 02:10:38 +0000
Subject: note 49155 deleted from language.oop5.constants by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133530@lists.php.net to get a copy of this message
Note Submitter: pcarmody at c-spanarchives dot org ---- It should be noted that you cannot use the return from a function to assign a value to a class constant: <?php class MyClass { const good = "blah"; const bad = str("blah", 0, 3); // causes a parse error } ?>

« previous php.notes (#133530) next »