<?php$p = 15;$q = 25;function calc(){ $q = $GLOBALS['p'] + $GLOBALS['q'];} calc();echo $q;?>
The value of global variable y does not change therefore it’ll print 25;
Previous Question Next Question
Your comments will be displayed only after manual approval.