84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
class DBmodel{ private $name; publice function delete($name){ $this->name = $name; } }
$this 内部はクラス DBmodel 全体を表しますか、それともクラス メソッド delete を表しますか?
$this はオブジェクトを表し、$this が配置される環境はクラス内のメソッド内にあるため、$this オブジェクトはクラス内でアクセスされます
//如果里面有构造方法: function __construct(){ $this->name = $name; }
の $this はコンストラクター メソッド自体を表しますか?
$this はオブジェクトを表し、$this が配置される環境はクラス内のメソッド内にあるため、$this オブジェクトはクラス内でアクセスされます
の $this はコンストラクター メソッド自体を表しますか?