What will be the output of the following PHP code ?
<?php $x = 5; $y = 10; function fun() { $y = $GLOBALS['x'] + $GLOBALS['y']; } fun(); echo $y; ?>
(b).10
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
(b).10
need an explanation for this answer? contact us directly to get an explanation for this answer