小编Joh*_*ise的帖子

我可以在PHP中使用运算符作为函数回调吗?

假设我有以下功能:

function mul()
{
   return array_reduce(func_get_args(), '*');
}
Run Code Online (Sandbox Code Playgroud)

是否可以使用*运算符作为回调函数?还有其他方法吗?

php operators

5
推荐指数
2
解决办法
346
查看次数

标签 统计

operators ×1

php ×1