Home  >  Article  >  Backend Development  >  PHP object-oriented PHP object-oriented video download PHP what is object-oriented PHP object-oriented practice

PHP object-oriented PHP object-oriented video download PHP what is object-oriented PHP object-oriented practice

WBOY
WBOYOriginal
2016-07-29 08:49:291217browse

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.

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