search

Home  >  Q&A  >  body text

什么是常量?

checkcheck2883 days ago1651

reply all(5)I'll reply

  • 钟毅

    钟毅2017-10-04 14:52:26

    PHP constants are constant character or numerical types defined in DEFINE. Commonly used fixed values ​​such as 3.14 are considered this type of value. This is given in the predefined COMMON. Convenient to use throughout the entire process. This is all for frequent use during the development process.

    reply
    0
  • 数据分析师

    数据分析师2017-09-30 23:33:17

    What are constants? -PHP Chinese website Q&A-What are constants? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • phpcn_u29672

    phpcn_u296722017-09-25 13:44:31

    When writing constants, be sure to pay attention to capitalization. I didn't pay attention to this problem at the beginning when I was writing, and ended up getting very frustrated while debugging.

    reply
    0
  • 常青春

    常青春2017-09-23 09:29:11

    Constant can be understood as a quantity whose value does not change; or after the constant value is defined, it can be used globally, but the constant is not fixed.

    reply
    0
  • 迷茫

    迷茫2016-12-22 11:34:33

    常量可以理解为值不变的量(如圆周率);或者是常量值被定义后,在脚本的其他任何地方都不可以被改变。

    reply
    2
  • Cancelreply