Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Tell me what is the difference between Exception::getMessage and Exception::getLine?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

Exception::getMessage lets us getting the Exception message and Exception::getLine lets us getting the line in which the exception occurred.

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?Tell me what are the correct and the most two common way to start and finish a PHP block of code?