search

Home  >  Q&A  >  body text

If the constant is not quoted outside, an error will be reported.

//Constants can be placed without quotation marks

define(YH,'Don't be confused about the future, calm down and code when you are confused');

echo YH;


familyfamily1972 days ago1342

reply all(1)I'll reply

  • (O_O)

    (O_O)2019-09-19 21:26:09

    When defining a constant, the first parameter must also be quoted.

    For example, define("YH",'I am a good person')

    reply
    2
  • Cancelreply