Which PHP function is used to define a named constant at run time?
Correct answer A. define()
Explanation
define() creates a named constant, for example define("SITE", "MCQs"). Once defined, a constant cannot be changed or undefined during the script.
Answer checked How we write and check questions
Discussion