Home >Backend Development >PHP Tutorial >What's wrong with this sentence?
Prompt the following error
( ! ) Parse error: syntax error, unexpected '=', expecting ',' or ';' in D:wampwwwfunction.php on line 33
Prompt the following error
( ! ) Parse error: syntax error, unexpected '=', expecting ',' or ';' in D:wampwwwfunction.php on line 33
The end has a new line~~~~it’s not spelled out
For the code that is spliced and then output like this, it is easy to miss single and double quotation marks. I suggest that it is better to divide it into two steps, first splice it into a string, and then output it. It is more obvious to find the error point in this way.
Didn’t you notice that &num
is not enclosed in double quotes? This editor has them all colored for you.
Look carefully at the splicing of your strings and variables