I don’t understand why I don’t see the $ a variable, if I’ve indicated that it is global, does it have to come from the scope of the inFoo function?
How then to address her?
function inFoo() { $a = 5; function foo() { global $a; return $a; } return foo(); } echo '<pre>'; print_r(inFoo()); echo '</pre>';