Home >Backend Development >PHP Tutorial >PHP中$this,$self,$parent

PHP中$this,$self,$parent

WBOY
WBOYOriginal
2016-08-08 09:31:361095browse

$this points to the instance object of the current class;

$self points to the static member variables and class methods of the current class;

$parent points to the pointer of the parent class; generally used for the constructor of the parent class;

The above introduces $this, $self, $parent in PHP, including the relevant 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