Пример 1. classkit_method_rename() example
<?php class Example { function foo() { return "foo!\n"; } }
// Rename the 'foo' method to 'bar' classkit_method_rename( 'Example', 'foo', 'bar' );
// output renamed function echo Example::bar(); ?>
|
Результат выполнения данного примера: