PHP 问答之 什么时候在 $this 上使用 self ? 实战问题 在 PHP 中,使用self和 有$this什么区别? 什么时候合适? 解决方案 使用$this来指代当前对象。用self指当前类。换句话说, t h i s − > m e m b e r 用 于 非 静 态 成 员