In PHP, can we use a global variable and local variable in the same scope together?
Is it possible to use a global variable and local variable (with the same name) in the same scope? Suppose we have,
<?php
include "example.php";
function foo($bar) {
global $bar;
------------
------------
}
?>
How can we access both $bar
(global and local) in the same scope, is there any way?