Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

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

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

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

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Difference between mysql_connect and mysql_pconnect?What are the different errors in PHP?