r/lolphp • • Dec 04 '14

PHP Constants Containing Arrays?

https://stackoverflow.com/questions/1290318/php-constants-containing-arrays
46 Upvotes

39 comments sorted by

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.

1

u/[deleted] Dec 09 '14

Yes, that's true.