Sr. PHP Programmer Question:

How will you access the reference to same object within the object in PHP?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

The variable $this is a special variable and it refers to the same object ie. itself.


Previous QuestionNext Question
Write down the code for save an uploaded file in php?What is the importance of "action" attribute in a html form?