register_shutdown_function

Register a function for execution on shutdown

function register_shutdown_function<T>(
  (function(): T) $function,
): void;

Parameters

  • (function(): T) $function

Returns

  • void