class DBmodel{ private $name; publice function delete($name){ $this->name = $name; } }
rrreee
$this는 객체를 나타내며, $this가 위치한 환경은 클래스 내부의 메소드 내부에 있으므로 클래스 내부에서 $this 객체에 접근합니다
//如果里面有构造方法: function __construct(){ $this->name = $name; }
의 $this는 구축 방식 자체를 나타내는 걸까요?
$this는 객체를 나타내며, $this가 위치한 환경은 클래스 내부의 메소드 내부에 있으므로 클래스 내부에서 $this 객체에 접근합니다
의 $this는 구축 방식 자체를 나타내는 걸까요?