1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

$thisについて

Last updated at Posted at 2022-03-25

$thisは自身のクラスのオブジェクトを指している。
$thisを使うことで自身のクラスで設定しているプロパティにアクセスできる。
動的(インスタンス)メソッドとして利用可能。
静的(スタティック)メソッドでは利用できない。

参考記事

https://techacademy.jp/magazine/35967
https://www.m5a.jp/this.html
https://qiita.com/vanshi/items/488845780a3a8ffa90bb

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?