Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
Superglobal means that variable is accessible in any part of the running script. So they can be accessed inside the functions, class methods, if statements, iterators ,etc even without using 'global' keyword. However, using them is considered to be a bad code design.
30th Jun 2019, 12:42 AM
Freezemage
Freezemage - avatar