Snippets tagged “self-keyword”
1 snippet uses this tag.
- Using $this inside a static function failsPHP
Using $this inside a static function is not allowed in PHP because the $this variable is only available within the context of a non-static method.
1 snippet uses this tag.
Using $this inside a static function is not allowed in PHP because the $this variable is only available within the context of a non-static method.