runkit_function_copy
(PECL runkit >= 0.7.0)
runkit_function_copy — Copy a function to a new function name
Descripción
bool runkit_function_copy
( string $funcname
, string $targetname
)
Lista de parámetros
- funcname
-
Name of existing function
- targetname
-
Name of new function to copy definition to
Valores retornados
Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.
Ejemplos
Example #1 A runkit_function_copy() example
<?php
function original() {
echo "In a function\n";
}
runkit_function_copy('original','duplicate');
original();
duplicate();
?>
El resultado del ejemplo seria:
In a function In a function
runkit_function_copy
There are no user contributed notes for this page.
