Home »
MCQs »
PHP MCQs
Which PHP keyword is used to access a global variable inside the function?
20. Which PHP keyword is used to access a global variable inside the function?
- php_ global
- global
- global_variable
- globalscope
Answer: B) global
Explanation:
PHP keyword global is used to access a global variable inside the function.