Home > PHP > Function > Classkit > classkit_method_rename()

classkit_method_rename()

classkit_method_rename - Dynamically changes the name of the given method

Syntax

bool classkit_method_rename (string $classname, string $methodname, string $newname)

Arguments

  • classname - The class in which to rename the method
  • methodname - The name of the method to rename
  • newname - The new name to give to the renamed method

Description

Version

PHP PECL classkit >= 0.1

Return value

Returns TRUE on success or FALSE on failure.