note 47153 deleted from language.oop5.constants by tularis
| From: | tularis@php.net | Date: | Thu, 04 Nov 2004 17:27:13 +0000 |
| Subject: | note 47153 deleted from language.oop5.constants by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79625@lists.php.net to get a copy of this message | ||
Note Submitter: andrew_at_rubybay_dot_net
----
It it worthwhile to note that arrays can not be defined as constants.
The following will not work:
const CONST_ARRAY = array( "key1" => "val1", "key2" =>
"val2" );
----
Reason: bad code