I have a function with this syntaxe :
$variable = function() {
return function(){
//code
}
}
I can't execute that function with
$variable()
Is there a way to execute this function ?
I have a function with this syntaxe :
$variable = function() {
return function(){
//code
}
}
I can't execute that function with
$variable()
Is there a way to execute this function ?
I don't know for what is it... But here example:
$a = function () {
return function () {
return 1;
};
};
$b = $a();
echo $b();