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!