abstract:data[$name]); } public function __get($name){ return IS_GET ? $this->data[$name] : '非法访问'; } public function __set($name,$value){ IS_SET ? $this->data[$name] = $value : '禁止赋值'; } public function __unset($name){ if(IS_UNSET){ unset($this->data[$name]); }else{ echo '禁止销毁'; } } } $visit = new Visit(); if(isset($visit->table)){ echo $visit->table,'
'; }else{ $visit->table = 'table_staff'; } echo $visit->table,'
'; $visit->table = 'table_foots'; echo $visit->table; unset($visit->table); echo $visit->table;
Correcting teacher:查无此人Correction time:2019-07-04 13:20:05
Teacher's summary:完成的不错。基础上php已经入门了,以后多练习实战项目。继续加油。