XP_SIG

XP_SIG($signal)

Generates an XPSPL SIG object from the given $signal.

This function is only a shorthand for new XPSPL\SIG($signal).

Parameters:string| – Signal process is attached to.
Return type:object XPSPLSIG

Example #1 Basic Usage

This will create a SIG idenitified by ‘foo’.

<?php
xp_signal(XP_SIG('foo'), function(){
    echo "HelloWorld";
});

xp_emit(XP_SIG('foo'));
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.