Execute a function after a signal has been emitted.
| Parameters: |
|
|---|---|
| Return type: | object \XPSPL\Process |
<?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