When I try to do this:
function a()
{
function b() { }
}
a();
a();
I get Cannot redeclare b....
When I tried to do this:
function a()
{
if(!isset(b))
function b() { }
}
a();
a();
I get unexpected ), expected ....
How can I declare the function as local and to be forgotten of when a returns? I need the function to pass it to array_filter.
PHP Version 5.3.2-1ubuntu4.2, but this has to run onPHP Version 5.3.6