How do you create a constant in PHP?
-
A
const()
-
B
constant()
-
C
define()
Correct answer
-
D
def()
Correct answer
C. define()
14 views
Explanation
The define() function is used to create constants in PHP.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ