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
- PHP is loosely typed, meaning:
- You are writing a PHP script and you need to find the highest value in a list of numbers. How would you do this?
- How can you remove the first element from an array in PHP?
- You cannot modify global variables using the $GLOBALS superglobal in PHP.
- Which of the following SQL clauses is used to filter the results of a query?