Home > Q&A > body text
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?
无忌哥哥2018-07-13 13:34:43
if(){}elseif(){}else{}, see if there is anything wrong.
It's not wrong. I copied a piece of code from the Internet and ran it, but there is still a problem.
So what is the specific error reported?
What does the error say?
Did I forget to give conditions to elseif? Did I forget to give conditions after elseif?
This is because your { symbol is wrong. See if there is less writing. on line 24
There is no error. It is indeed a syntax problem. I found the problem.
parse error:syntax error,unexpected '{', expecting'(' in D:\phystudy\PHPTutorial\www\array.php on line 24
this one