Sr. PHP Programmer Question:

How will you retrieve source line using Exception class in PHP when error occured?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

Using getLine() method of Exception class which returns source line.


Previous QuestionNext Question
What is the purpose of $_COOKIE variable in PHP?Are objects in PHP 5 passed by value or reference?