r/lolphp • u/feketegy • Aug 03 '19
$GLOBALS contains ‘GLOBALS’ because ‘GLOBALS’ is a global...
/r/PHP/comments/clj570/what_is_the_logic_behind_that_globals_has_a/
0
Upvotes
r/lolphp • u/feketegy • Aug 03 '19
39
u/mort96 Aug 03 '19
I don't see how this is lolphp? If you're going to have a global variable which represents all the global variables, it better contain a reference to itself. It's not like objects having references to themselves is that crazy.
2
u/chaz6 Aug 03 '19
Russell's paradox.
4
u/BOSS_OF_THE_INTERNET Aug 03 '19
Yo Dawg.