Sr. PHP Programmer Question:
Download Questions PDF

How will you retrieve stack trace using Exception class in PHP when error occured?


Using getTrace() method of Exception class which returns array of the backtrace.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you access session variables in PHP?What is use of in_array() function in php?