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

PHP中$this,$self,$parent

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:31:36
Original
1107 people have browsed it

$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.

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