PHP 手册
后退 |  | 前进

# rename_function

(PECL)

rename_function -- Renames orig_name to new_name in the global function_table

## Description

bool rename_function ( string original_name, string new_name )

Renames orig_name to new_name in the global function_table. Useful for temporarily overriding builtin functions.

例子 1. rename_function() example

`<?php rename_function('mysql_connect', 'debug_mysql_connect' ); ?>`

后退 | 起点 | 前进
override_function | 上一级 | Alternative PHP Cache