static 延迟绑定
- 表明继承后的类,多用于父类中填写
- 用户属性与方法时表明类的规则
self 当前类
指向出现的当前类,子类中继承的方法调用的类其实是父类this
parent 父类
多用来复写父类方法与属性code
$this
表明类实例化后的对象对象
abstract | interface
- abstract 复写
- interface 统一规范
Exception 错误处理
throw
类中抛出错误,不进行处理
try catch
逻辑层获取并处理错误
拦截器(overloading | interceptor | 魔术方法)
- __call()
- __tostring()
- __clone()
- __construct() | destruct()
- __get() | set()
- __isset() | unset()