|
runkit_sandbox_output_handlerSpecify a function to capture and/or process output from a runkit sandbox Description
mixed runkit_sandbox_output_handler
( object
$sandbox
[, mixed $callback
] )Ordinarily, anything output (such as with echo or print) will be output as though it were printed from the parent's scope. Using runkit_sandbox_output_handler however, output generated by the sandbox (including errors), can be captured by a function outside of the sandbox.
Parameters
Return Values
Returns the name of the previously defined output handler callback, or
Examples
Example #1 Feeding output to a variable
<?php The above example will output: Sandbox Complete Hello string(9) "Excuse me" I lost myself. |