Home > PHP > Function > APD > rename_function()

rename_function()

rename_function - Renames orig_name to new_name in the global function table

Syntax

bool rename_function (string $original_name, string $new_name)

Arguments

  • original_name - The original function name.
  • new_name - The new name for the original_name function.

Description

Renames a orig_name to new_name in the global function table. Useful for temporarily overriding built-in functions.

Version

PHP PECL apd >= 0.2

Return value

Returns TRUE on success or FALSE on failure.