How efficient is define in PHP?

前端 未结 10 1392
不思量自难忘°
不思量自难忘° 2020-12-15 18:38

C++ preprocessor #define is totally different.

Is the PHP define() any different than just creating a var?

define(\"SETTING         


        
10条回答
  •  佛祖请我去吃肉
    2020-12-15 18:57

    When I run speed tests, constants being set and dumped out run much a little faster than setting variables and dumping them out.

提交回复
热议问题