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

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

WBOY
Release: 2016-06-13 10:14:20
Original
774 people have browsed it

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

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

探讨
有没有这么用$this->$name?的情况
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template