Menu Samaritan's Purse

REGISTER_SHUTDOWN_FUNCTION

Register a function for execution on shutdown

SYNTAX

register_shutdown_function ( callable $callback [, mixed $... ] ) : void

PARAMETERS

callback

The shutdown callback to register. The shutdown callbacks are executed as the part of the request, so it's possible to send output from them and access output buffers.

...

It is possible to pass parameters to the shutdown function by passing additional parameters.

RETURN

No value is returned.

EXAMPLES

CALLBACK

myfunction

...

myfunction myparameter

PHP