To check if a specific cookie is set in PHP, you can use the ________ superglobal array.
- $_GET
- $_SESSION
- $_COOKIE
- $_POST
The correct option is $_COOKIE. In PHP, $_COOKIE is a superglobal array used to access cookies set in the client's browser.
Loading...
Related Quiz
- The is_float() function in PHP checks if a variable is an integer.
- What are some common practices in PHP when using static methods in OOP?
- You are writing a PHP script and you need to find the highest value in a list of numbers. How would you do this?
- You have installed PHP on your local machine, but your PHP script isn't running. What could be potential reasons for this?
- To pass an argument by reference in a PHP function, you prepend the argument with the ________ symbol.