Hello,
Is there a way to access a static variable defined inside a function from
outside that function? Something like the following:
function foo() {
static $bar = 'stuff';
// more code
}
// Something like this (which will not work, of course):
echo foo()::bar; // or
echo foo()->bar;
Or can the function return a reference to one of its static vars?
Greetings,
Thomas