Home »
MCQs »
PHP MCQs
Which is the correct syntax of define() function in PHP?
77. Which is the correct syntax of define() function in PHP?
- define(constant_name)
- define(constant_name, value)
- define(constant_name, value, case-insensitive)
- define(constant_name = value)
Answer: C) define(constant_name, value, case-insensitive)
Explanation:
The correct syntax of the define() function is:
define(constant_name, value, case-insensitive)