Can't this be used directly?
谁在乎昵称呢
谁在乎昵称呢 2018-05-22 14:21:59
0
0
1271

public function setName($name,$value){
$this->$name = $value;
}
Can’t we directly execute the following function to set the corresponding attributes? ?
$obj->setName('name','new name');
$obj->setName('age','22');
$obj->setName(' salary,'6000');
Why do you need to write setAge($name,$value) separately?

谁在乎昵称呢
谁在乎昵称呢

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template