Home  >  Article  >  Backend Development  >  请高手解决php中小弟关于$这个符号的疑问!解决方案

请高手解决php中小弟关于$这个符号的疑问!解决方案

WBOY
WBOYOriginal
2016-06-13 10:14:20690browse

请高手解决php中小弟关于$这个符号的疑问!~~~
php中类定义了一个$name,但是为什么在用$this->name,引用时,name前不用$呢?就是为什么不是$this->$name

------解决方案--------------------

探讨
有没有这么用$this->$name?的情况
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn