Q. Which PHP function is used to check whether a method exists in a class?
β
Correct Answer: (A)
method_exists()
Explanation: method_exists() checks for a method in a class.