Q. Which of the following is used to handle errors in PHP?

  • (A) try-catch
  • (B) onerror
  • (C) exception block
  • (D) fail block
πŸ’¬ Discuss
βœ… Correct Answer: (A) try-catch
Explanation: PHP uses try-catch blocks to handle exceptions and errors.
Explanation by: Rati Dubey
PHP uses try-catch blocks to handle exceptions and errors.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
124
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
95%
Success Rate