Why This code shows error ????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
5th Oct 2017, 6:02 AM
karthik
karthik - avatar
2 Answers
+ 2
Why This code not shows error ????? https://code.sololearn.com/waOP3RT3FBAG/?ref=app
5th Oct 2017, 7:01 AM
Calviղ
Calviղ - avatar
+ 1
You have a bunch of trailing invisible dots "." in your code that shouldn't be there. They are highlighted in red in the playground. Remove them and your code will run fine. see all <-- below <?php <-- $x = 75; <-- $y = 25; function addition() { <-- $GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y']; <-- } addition(); <-- echo $z; <-- ?>
5th Oct 2017, 6:09 AM
ChaoticDawg
ChaoticDawg - avatar