In PHP, which keyword is used to define a constant?
- constant
- define
- const
- let
Constants in PHP are defined using the define function. It's not a keyword but a function used to create named constants with a specific value.
Loading...
Related Quiz
- When is a conditional statement ended with endif?
- What function do you use in PHP to establish an FTP connection?
- The is_float() function in PHP checks if a variable is an integer.
- The $_POST superglobal in PHP is often used to collect form data sent via the POST method.
- You can decode a JSON object into a PHP array using the json_decode() ______.