Home > PHP > Function > runkit > runkit_function_redefine()

runkit_function_redefine()

runkit_function_redefine - Replace a function definition with a new implementation

Syntax

bool runkit_function_redefine (string $funcname, string $arglist, string $code)

Arguments

  • funcname - Name of function to redefine
  • arglist - New list of arguments to be accepted by function
  • code - New code implementation

Description

Version

PHP PECL runkit >= 0.7.0

Return value

Returns TRUE on success or FALSE on failure.