Sr. PHP Programmer Question:
Download Questions PDF

What is the purpose of $GLOBALS variable in PHP?

Answer:

$GLOBALS − Contains a reference to every variable which is currently available within the global scope of the script. The keys of this array are the names of the global variables.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you check if session variable is already set or not in PHP?Tell me how to declare an array in php?