Home >Backend Development >PHP Tutorial >PHP object-oriented PHP object-oriented video download PHP what is object-oriented PHP object-oriented practice
The difference between $this->name and $this->$name
I think it should be like this: $this->name is a member variable named name in the access class. The latter is to access a member variable named $name in the class. If $name = x, then it is equivalent to $this->x;
$this->name
means inside the class Codenames for properties and methods
The above has introduced PHP object-oriented, including object-oriented and PHP content. I hope it will be helpful to friends who are interested in PHP tutorials.