Which PHP function checks whether a variable has been set and is not null?
Correct answer C. isset()
Explanation
isset() returns true if the variable exists and its value is not null. empty() checks for empty values, and is_null() checks only for null.
Answer checked How we write and check questions
Discussion