让我们首先查看许多PHP应用程序中的一项常用技术;将某些种类的信息存入程序开头的变量赋值语句中。
Let's start by looking at a common technique in many PHP applications: placing certain kinds of information in variable assignment statements at the top of the program.
命令式编程的用户对赋值的依赖要超过其他编程技术。
Users of imperative languages rely on assignments more than any other programming technique.
虽然在技术上这种做法没有什么不对,直接量赋值很快。
Although there is technically nothing wrong with this approach, literals are evaluated faster.
应用推荐