PHP: runkit_function_copy - Manual

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: Sat, 27 Jan 2007

view this page in

# runkit_function_copy

(PECL)

runkit_function_copy -- Copy a function to a new function name

## Описание

bool runkit_function_copy ( string funcname, string targetname )

## Список параметров

`funcname`

  Name of existing function

`targetname`

  Name of new function to copy definition to

## Возвращаемые значения

Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

## Примеры

Пример 1. A runkit_function_copy() example

`<?php
function original() {
echo "In a function\n";
}
runkit_function_copy('original','duplicate');
original();
duplicate();
?>`

Результат выполнения данного примера:

    In a function
    In a function

## Смотрите также

runkit_function_add()
runkit_function_redefine()
runkit_function_rename()
runkit_function_remove()

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: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST