Constant arrays
| From: | Barbu Paul Gh. | Date: | Mon, 19 Dec 2011 20:20:09 +0000 |
| Subject: | Constant arrays | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-56949@lists.php.net to get a copy of this message | ||
Hello!
I wonder why I cannot assign arrays to constants.
According to the PHP manual:
"only scalar and null values are allowed. Scalar values are integer, float, string or boolean values."
What is the mechanism behind this?
What's the explanation?
--
Common sense is not so common - Voltaire
http://tweak-it.tk/ - Personal portfolio and web-log - Barbu Paul
- Gh.
Visit My GitHub profile to see my open-source projects - https://github.com/paullik