xp_on_start

xp_on_start($function)

Registers a function to call when the processor starts.

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

Example #1 Basic Usage

<?php

xp_on_start(function(){
    echo 'The processor started';
});

xp_wait_loop();

The above code will output.

The processor started!
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.