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?

  1. php_ global
  2. global
  3. global_variable
  4. globalscope

Answer: B) global

Explanation:

PHP keyword global is used to access a global variable inside the function.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.