<?phpclass Example { function foo() { return "foo!\n"; } }// Rename the 'foo' method to 'bar'classkit_method_rename( 'Example', 'foo', 'bar');// output renamed functionecho Example::bar();?>
The above example will output:
foo!