国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Does $this in PHP represent the current class or method?
A _ Q _i_(kāi)
A _ Q _i_(kāi) 2021-10-10 19:51:03
0
5
1065
class DBmodel{
    private $name;
    publice function delete($name){
        $this->name = $name;
    }
}

Does $this inside represent the entire class DBmodel, or the class method delete?

A _ Q _i_(kāi)
A _ Q _i_(kāi)

reply all(2)
逆旅行人

$this represents an object, and the environment where $this is located is inside the method inside the class, so the $this object is accessed inside the class

A _ Q _i_(kāi)

Does $this in

//如果里面有構(gòu)造方法:
function?__construct(){
$this->name?=?$name;
}

represent the constructor method itself?

  • reply $this->name represents the name attribute in this class
    autoload author 2021-10-14 09:49:31
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template