Passing a class as function parameter

前端 未结 0 1107
Happy的楠姐
Happy的楠姐 2021-02-12 05:35

I\'m trying to do something like this:

function doSomething($param, Class) {
Class::someFunction();
}

$someVar = doSomething($param, Class);

I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题