When you read PHP manual, you see a section of the
attributes inside the
class and object , which says:
When a method is called inside a class definition, there is an available pseudo-variable $this. $this is a reference to the calling object (usually the object that the method is dependent on, but it may be another object if it is called from a second object statically).
Search on the Internet, for the $this, or relatively understanding, but for the main call object, still do not understand. Can you explain it in a simple and easy-to-understand description?
Reply content:
When you read PHP manual, you see a section of the attributes inside the class and object , which says:
When a method is called inside a class definition, there is an available pseudo-variable $this. $this is a reference to the calling object (usually the object that the method is dependent on, but it may be another object if it is called from a second object statically).
Search on the Internet, for the $this, or relatively understanding, but for the main call object, still do not understand. Can you explain it in a simple and easy-to-understand description?