search

Home  >  Q&A  >  body text

A simple piece of code reports an error, but the code is correct. I can’t figure it out.

111.png

There are obviously no errors in the above screenshots. I typed them myself

流年流年1980 days ago1481

reply all(6)I'll reply

  • 王林

    王林2019-08-20 17:47:47

    The semicolon of the output statement is obviously different from the semicolon of the assignment statement, check it.

    reply
    0
  •         

            2019-08-01 18:42:36

    semicolon

    reply
    0
  • 痛瘾悲喜.

    痛瘾悲喜.2019-07-26 12:13:57

    The two semicolons in the variable name are different from the two semicolons in echo. It is probably caused by the fact that you directly entered the Chinese text in echo without switching shift.

    reply
    0
  • 我有18岁

    我有18岁2019-07-24 16:07:43

    Obviously, four semicolons, two in Chinese and two in English! ! Change it to semicolon in English mode and it will be OK

    reply
    0
  • kanglecheng

    kanglecheng2019-07-24 14:48:57

    I suggest you change to an editor that reports errors, such as PhpStorm

    reply
    0
  • 老洪

    老洪2019-07-24 11:38:54

    Are the two semicolons in the variable names in Chinese? Just change it

    reply
    0
  • Cancelreply