Is there a way to access $foo
from within inner()
?
function outer()
{
$foo = "...";
function inner()
{
// print $foo
}
inner();
}
outer();
See Question&Answers more detail:osIs there a way to access $foo
from within inner()
?
function outer()
{
$foo = "...";
function inner()
{
// print $foo
}
inner();
}
outer();
See Question&Answers more detail:os