php private学习笔记 类的权限修饰符,放在属性/方法的前面。用来说明属性/方法的权限特点。 三种权限修饰符 private 私有的 public 公共 protected 保护的 privata 的属性、方法只能在类中访问。