Is there a way to access $foo
from within inner()
?
function outer()
{
$foo = \"...\";
function inner()
{
// pr
I do not think it is possible.
PHP Manual has some comment around this and none of them seam to find a solution.
http://www.php.net/manual/en/language.variables.scope.php#77693
Another comment suggests that nested functions are not actually "nested" for real
http://www.php.net/manual/en/language.variables.scope.php#20407