摘要:
__construct 构造方法 1 class Person 2 { 3 public $name; 4 5 # 构造方法 6 public function __construct($n){ 7 $this->name = $n; 8 } 9 10 public function say(){ 11 ... 阅读全文
摘要:
抽象类:含有抽象方法的类【abstract 抽象关键词】 1 abstract class Usb 2 { 3 public function load(){ 4 echo "Usb is loading"; 5 } 6 7 public function start(){ 8 echo "Usb is starting... 阅读全文
摘要:
字段添加 添加sex字段: alter table t1 add sex tinyint not null;在name字段后面添加sex字段: alter table t1 add sex tinyint not null after name;在第一列添加sex字段 alter table t1 add sex tinyint not null first; 字段删除 a... 阅读全文