Home »
MCQs »
PHP MCQs
In the syntax of $GLOBALS[index], what does 'index' hold?
23. In the syntax of $GLOBALS[index], what does "index" hold?
- Index (starting from 0) of the variable
- Index (starting from 1) of the variable
- Name of the variable
- Line number of the variable where the variable was declared
Answer: C) Name of the variable
Explanation:
In the syntax of $GLOBALS[index], index holds the name of the variable.