+ 1
Why This code shows error ?????
2 ответов
+ 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; <--
?>