RENAME_FUNCTION(3) 1 RENAME_FUNCTION(3)
rename_function - Renames orig_name to new_name in the global function table
SYNOPSIS
bool rename_function (string $original_name, string $new_name)
DESCRIPTION
Renames a orig_name to new_name in the global function table. Useful for temporarily overriding built-in functions.
PARAMETERS
o $original_name
- The original function name.
o $new_name
- The new name for the $original_name function.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
rename_function(3) example
<?php
rename_function('mysql_connect', 'debug_mysql_connect' );
?>
PHP Documentation Group RENAME_FUNCTION(3)