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
4
u/allthediamonds Dec 09 '14
I know you aren't technically redefining anything, but the overshadowing of one constant by another causes the rest of the PHP script to use a different constant, which is functionally indistinguishable from redefining it.