Example 1. runkit_method_remove() example
<?php class Example { function foo() { return "foo!\n"; } function bar() { return "bar!\n"; } }
// Remove the 'foo' method runkit_method_remove( 'Example', 'foo' );
echo implode(' ', get_class_methods('Example'));
?>
|
The above example will output: