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

Submitted by: Administrator
Using getCode() method of Exception class which returns the code of exception.
Submitted by:

Read Online Sr. PHP Programmer Job Interview Questions And Answers