* Example 1: tracing argument: $a, variable: $b, returned parameter: $c * * require_once 'PHP/FunctionCallTracer.php'; * * function foo($a) * { * PHP_FunctionCallTracer::traceArguments(); * * $b = strtoupper($a); * PHP_FunctionCallTracer::traceVariables($b); * * $c = true; * PHP_FunctionCallTracer::traceReturn($c); * return $c; * } * * $c = foo('foo'); * PHP_FunctionCallTracer::putTrace(); * * Example 2: tracing and rounding variable: $a * * require_once 'PHP/FunctionCallTracer.php'; * * PHP_FunctionCallTracer::setUserFunctions('round'); * * function bar($a) * { * $a *= 2; * PHP_FunctionCallTracer::traceVariables($a); * PHP_FunctionCallTracer::processVariables(); * * return $a; * } * * $a = bar(1.23); * PHP_FunctionCallTracer::putTrace(); *