Home  >  Article  >  Backend Development  >  A brief introduction to php's this and self

A brief introduction to php's this and self

小云云
小云云Original
2018-03-06 13:33:281577browse

This is a very important part in js. This article mainly shares with you a brief introduction to this and self in php. I hope it can help you.

static  $t_follow = 'df_shop_follow';
  • this can only refer to external public, and internal public variables

$this->t_follow
  • self can only access the current The static variable of the page

self::$t_channel
  • this has greater access rights than self

Related recommendations:

Four types of this value modes in JS

Different ways of function calling and detailed explanation of this pointing

this in js Detailed explanation of object usage examples

The above is the detailed content of A brief introduction to php's this and self. For more information, please follow other related articles on the PHP Chinese website!

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