Can I use operators as function callback in PHP?

前端 未结 4 1706
南旧
南旧 2021-01-18 17:20

Suppose I\'ve the following function:

function mul()
{
   return array_reduce(func_get_args(), \'*\');
}

Is is possible to use the * operat

4条回答
提交回复
热议问题