if / else / can elseif be used?
阿超
阿超 2018-07-13 09:45:15
0
6
1415

I wrote and ran it and it said there were errors and syntax problems. Is it different from the usage in Java and C language?

阿超
阿超

reply all(1)
无忌哥哥

if(){}elseif(){}else{}, see if there is anything wrong.

  • reply It's not wrong. I copied a piece of code from the Internet and ran it, but there is still a problem.
    阿超 author 2018-07-13 15:38:03
  • reply So what is the specific error reported?
    无忌哥哥 author 2018-07-13 15:49:59
  • reply What does the error say?
    You bad bad author 2018-07-13 16:01:48
  • reply Did I forget to give conditions to elseif? Did I forget to give conditions after elseif?
    阿超 author 2018-07-13 17:09:59
  • reply This is because your { symbol is wrong. See if there is less writing. on line 24
    You bad bad author 2018-07-13 17:29:19
  • reply There is no error. It is indeed a syntax problem. I found the problem.
    阿超 author 2018-07-16 17:30:38
  • reply parse error:syntax error,unexpected '{', expecting'(' in D:\phystudy\PHPTutorial\www\array.php on line 24
    阿超 author 2018-07-13 16:56:48
  • reply this one
    阿超 author 2018-07-13 16:57:29
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template