How efficient is define in PHP?

前端 未结 10 1348
不思量自难忘°
不思量自难忘° 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

    Define is simple static sense, meaning its value can't be changed during runtime while variable is dynamic sense because you can freely manipulate its value along the process.

提交回复
热议问题