xp_on_shutdown

xp_on_shutdown($function)

Registers a function to call when the processor shuts down.

Parameters:callable|object – Function or process object
Return type:object XPSPLProcess

Example #1 Basic Usage

<?php

xp_on_shutdown(function(){
    echo 'Shutting down the processor!';
});

xp_wait_loop();

The above code will output.

Shutting down the processor!
Read the Docs v: v5.0.1
Versions
latest
v5.0.1
v5.0.0
v4.0.1
v4.0.0
v3.1.1
v3.1.0
v3.0.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.