PHP, missing ; works for one line, but not work for multiple lines Parse error syntax error, unexpe

Опубликовано: 06 Март 2025
на канале: gocha's learning space
27
0

How to fix below error.

Parse error syntax error, unexpected token echo, expecting , or ; in Cxampphtdocshello2-error.php on line 7

You may be missing to put ; in the end of php code,
for example

!DOCTYPE html
html
body

?php
echo "Hello World2 ------" ; missing ?
echo "#again , Hello World2 ------" ; missing ?
?

/body
/html