Quiz 1
1. Which superglobal variable is used to get the filename of the current script?
2. Which function checks if a variable is 'empty' (e.g., 0, '', or NULL)?
3. What is a requirement for the header() function to work correctly?
4. Which function converts special characters to HTML entities?
5. How do you destroy a single session variable named 'user'?
6. Which superglobal stores data about uploaded files?
7. What is the best way to validate an email address in PHP?
8. What is the default scope of a variable declared inside a function?
9. Which keyword is used to keep a variable's value after a function finishes?
10. Which function splits a string into an array?
Previous Next