Today when I was writing a PHP program, I always got this error: Parse error: syntax error, unexpected end of file in *.php on line *. Then I followed the prompts to find the file, and the error always appeared. It prompted that there was an error in the last line. I found the last line and found that it was . I was confused. What could be wrong with this? It took me a long time to find the problem and share it.
? php Your PHP statement?>, I wrote it like this: Your PHP statement?>. Of course, it is also good to write it like this, but I did not enable short tags in php.ini, so this error occurred. Also note that there is a space after