php - Call objects in array values -
i set array variable this:
$app = [ "page" => function(){ echo "ok"; }, "test" => function(){ testfunc(); }, ];
now, want know how can call or run objects in array,
i trying use eval($app['test'])
not work!
Comments
Post a Comment