+ 1
Why This code shows error ?????
2 Answers
+ 2
Why This code not shows error ?????
https://code.sololearn.com/waOP3RT3FBAG/?ref=app
+ 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;Â <--
?>