πŸ“Š PHP
Q. Which PHP function checks if a method exists in a class?
  • (A) method_exists()
  • (B) function_exists()
  • (C) class_has_method()
  • (D) callable_exists()
πŸ’¬ Discuss
βœ… Correct Answer: (A) method_exists()

Explanation: method_exists() checks if a method exists in an object or class.

Explanation by: Kanak Sharma
method_exists() checks if a method exists in an object or class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
1
Total Visits
πŸ“½οΈ
5 h ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
98%
Success Rate