note 49155 deleted from language.oop5.constants by felipe
| From: | felipe@php.net | 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
}
?>