IF you have APD (Advanced PHP Debugger) extension enabled in PHP you can override a function (or more).
The function that helps you achieve this:
bool override_function ( string $function_name , string $function_args , string $function_code )
Example:
override_function(‘myfunction’, ’$first,$last’, ’echo ”Result: “; return $first * $last;’);
This can be very handy when you have an entire script that [...]