ANWhat about relying on $GLOBALS var? <?php include "example.php"; function foo($bar) { echo $bar; echo $GLOBALS['bar']; ------------ ------------ } ?>Comment·Thread·Jun 1, 2019·In PHP, can we use a global variable and local variable in the same scope together?