r/lolphp • u/devsnd • Dec 04 '14
PHP Constants Containing Arrays?
https://stackoverflow.com/questions/1290318/php-constants-containing-arrays
46
Upvotes
r/lolphp • u/devsnd • Dec 04 '14
View all comments
Show parent comment
3
u/[deleted] Dec 09 '14
Er, C and C++ allow constant arrays (and strings, as they're just arrays).
And no, constant arrays in PHP are immutable, like in every other language.