PHP issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

PHP issue

When I echo something on 1st line it works but then when I make it report a variable all of the sudden it IT SAYS THE ECHO WAS UNEXPECTED. https://code.sololearn.com/w14OPam4CwGz/?ref=app

15th Apr 2022, 3:08 PM
thecoder
5 Answers
0
You forgot the semicolon at the end of line 2.
15th Apr 2022, 3:17 PM
Simon Sauter
Simon Sauter - avatar
0
thecoder Semicolon (;) is must in PHP.
15th Apr 2022, 4:03 PM
A͢J
A͢J - avatar
0
I did it it still broke
16th Apr 2022, 2:03 PM
thecoder
0
Ohh you meant the variable
16th Apr 2022, 2:03 PM
thecoder
0
Sorry
16th Apr 2022, 2:03 PM
thecoder