Answers

Question and Answer:

  Home  Senior PHP Programmer

⟩ How will you retrieve the error message using Exception class in PHP when error occured?

Using getMessage() method of Exception class which returns the message of exception.

 203 views

More Questions for you: