Which of the following is not a magic constant in PHP?
__FILE__
__DIR__
__FUNCTION__
__VARIABLE__
Magic constants in PHP are predefined constants, such as __FILE__, __DIR__, and __FUNCTION__, which provide information about the code's context. __VARIABLE__ is not a valid magic constant.
Loading...
Related Quiz
- A variable declared outside all functions in PHP is considered to have a ______ scope.
- You have a PHP script and you are getting an error when trying to send an email. How would you troubleshoot this issue using mail functions?
- You are writing a PHP script and you need to define an abstract class. How would you do this?
- What is the difference between the include and require statements in PHP?
- Which of the following functions in PHP can be used to manipulate strings?