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, 20 Jun 2008

view this page in

runkit_function_copy

(PECL runkit:0.7-0.9)

runkit_function_copy — Copie une fonction vers un nom de fonction nouveau

Description

bool runkit_function_copy ( string $funcname , string $targetname )

Liste de paramètres

funcname

Nom de la fonction existante

targetname

Nom de la nouvelle fonction pour copier la définition vers celle-ci

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Exemple avec runkit_function_copy()

<?php
function original() {
  echo 
"Dans une fonction\n";
}
runkit_function_copy('original','duplicate');
original();
duplicate();
?>

L'exemple ci-dessus va afficher :

Dans une fonction
Dans une fonction



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, 20 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites