What will be the output of the following PHP code ?
<?php $x = 5; $y = 10; function fun() { $GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y']; } fun(); echo $y; ?>
(c).15
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.
(c).15
need an explanation for this answer? contact us directly to get an explanation for this answer