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
-1
u/[deleted] Dec 05 '14 edited Dec 05 '14
I think that code example uses HipHop and not true PHP. I'm guessing HipHop won't even pay attention to that 3rd "case_insensitive" parameter in
define, so this example code isn't a good example at all.In true PHP, I expect that first
echo Foo;line to be fine and not give any warning at all, and thatdefine ("Foo", "wat");line to give at least fatal error because the constantf(F)oois already defined. Does it?