xp_after

xp_after($signal, $process)

Execute a function after a signal has been emitted.

Parameters:
  • object – \XPSPL\SIG
  • callable|process – PHP Callable or \XPSPL\Process.
Return type:

object \XPSPL\Process

Example #1 Basic Usage

<?php

xp_signal(XP_SIG('foo'), function(){
    echo 'foo';
});

xp_after(XP_SIG('foo'), function(){
    echo 'after foo';
});

The above code will output.

// fooafter 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.