Is it possible to execute the procedure of a function in the scope of the caller?

ChrisG

New Member
Imagine \[code\]aFunction() { $foo = 123; // a lot more code}aFunction();echo $foo; // undefined\[/code\]Is there a way to put the procedure of aFunction into the scope of the caller?
 
Back
Top