I have problem with closure in PHP 5.4
I have array
public function check(){
return ['int'=>['filter'=>2],
'min'=>function($val){
return ['int'=>2,'min'=>$val];
}
]
}
When I use
(new Obj())->check()['int'];
it works. But I don't know how use min with parameter for example 3
I tryed
(new Obj())->check()['min'](3);
(new Obj())->check()['min'(3)];
(new Obj())->check()['min(3)'];
don't work.