PHP variable scope part2 November 18, 2017 Code: <?php /* variable scope local variable global variable static variable function parameter */ $x = 10; function xyz(){ //global $x; $z = 10 + $GLOBALS["x"]; print $z; } xyz(); Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment