Q. Which PHP function checks if a method exists in a class?
β
Correct Answer: (A)
method_exists()
Explanation: method_exists() checks if a method exists in an object or class.