Sr. PHP Programmer Question:
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.
Previous Question | Next Question |
Difference between mysql_connect and mysql_pconnect? | What are the different errors in PHP? |