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