Home »
MCQs »
PHP MCQs
Which keyword/function is used to create a constant in PHP?
76. Which keyword/function is used to create a constant in PHP?
- define keyword
- define() function
- const keyword
- const() function
Answer: B) define() function
Explanation:
The define() function is used to create a constant in PHP.