Home > PHP > Function > runkit > runkit_method_rename()

runkit_method_rename()

runkit_method_rename - Dynamically changes the name of the given method

Syntax

bool runkit_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 runkit >= 0.7.0

Return value

Returns TRUE on success or FALSE on failure.