Answers

Question and Answer:

  Home  Senior PHP Programmer

⟩ How will you retrieve code of exception using Exception class in PHP when error occured?

Using getCode() method of Exception class which returns the code of exception.

 239 views

More Questions for you: