Sr. PHP Programmer Question:
Download Questions PDF

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

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?