PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

runkit_function_redefine> <runkit_function_add
Last updated: Fri, 04 Jul 2008

view this page in

runkit_function_copy

(PECL runkit:0.7-0.9)

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



add a note add a note User Contributed Notes
runkit_function_copy
There are no user contributed notes for this page.

runkit_function_redefine> <runkit_function_add
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites