I am confused about the differences between $ this-& gt; name and $ this-& gt; $ name! $ This-& gt; $ name is used in the set and get methods. I can see it and assign $ this-& gt; to the attribute; name = 'SS'; for more information and explanations !!!!!, The latter is the variable. The former is the variable. $ name = aaa; $ t $ this-> name and $ this-> $ name are different. I am confused!
$ This-> $ name is used in the set and get methods. I can't see it at first. I usually assign $ this-> name = 'SS' to the attribute '; please provide a detailed introduction and explanation !!!!!
------ Solution --------------------
The latter is a variable.
The former is the variable of the variable.
------ Solution --------------------
$ Name = aaa;
$ This-> $ name equals to $ this-> aaa;
$ This-> aaa is a type variation
------ Solution --------------------
PHP code
Class a {private $ name; $ this-> name; private $ name; $ this-> $ name ;}