论「学好英语」的重要性

On the importance of learning English well

Posted by HaoDu on June 7, 2019

在 PHP 官网查看 const 类常量相关信息

中文 | English

其中中文版的是开篇介绍是这样的

访问控制(可见性) 对属性或方法的访问控制,是通过在前面添加关键字 public(公有),protected(受保护)或 >private(私有)来实现的。被定义为公有的类成员可以在任何地方被访问。被定义为受保护的类成»员则可以被其自身以及其子类和父类访问。被定义为私有的类成员则只能被其定义所在的类访问。

下边是英文的

Visibility The visibility of a property, a method or (as of PHP 7.1.0)a constant can be defined by prefixing the declaration with the keywords public, protected or private. Class members declared public can be accessed everywhere. Members declared protected can be accessed only within the class itself and by inheriting and parent classes. Members declared as private may only be accessed by the class that defines the member.

如果你不看英文,根本不知道”在 7.1.0 时 加入了对类常量可见性的控制”; 类似的场景也在 我查看 PHP foreach 时发生过:

In PHP 7, foreach does not use the internal array pointer.

看过英文我们知道 foreach 在 PHP7 中不再使用内部数组指针

这一切都在提醒我们 中文世界的信息是滞后的

甚至如果你英文不好(像我一样),查看英文版本的时候右键翻译成中文都比直接查看中文版要好,最起码信息是新的。 一个建议,希望你用的上。