如何将附加参数传递给register_shutdown_function() [英] How to pass Additional Parameters to register_shutdown_function()

查看:88
本文介绍了如何将附加参数传递给register_shutdown_function()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP手册相当有用地声明

The PHP manual rather helpfully states


可以通过传递附加参数将参数传递给shutdown函数。
It is possible to pass parameters to the shutdown function by passing additional parameters.



sic。但没有举例。

这究竟是如何工作的。我使用shutdown函数来包装来自各种类的错误。

sic. But gives no example.
How exactly does this work. I use shutdown function to wrap up errors from various classes something like this.

展开 | 选择 | Wrap | 行号

推荐答案

在手册中列出:
listed in the manual:

void register_shutdown_function(callback
void register_shutdown_function ( callback


function [,mixed
function [, mixed


parameter [,mixed
parameter [, mixed


这篇关于如何将附加参数传递给register_shutdown_function()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆