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