Php oops concepts in hindi. Understanding "$this" when it works as reference inside a class.
Please watch: "oops concepts in php in hindi"
https://www.youtube.com/watch?v=35AjG2TehuM
-~-~~-~~~-~~-~-
When we appear for the interview in php most of the time they ask about "$this" variable. This video will explain the uses of "$this" in a class context of the object
"$this" is a object reference pointing to the object or its a reference to the object which is currently calling the methods or function."
"$this" gives a lot of flexibility to the programmer by internally referencing the object each time when you call a method or create a new object