Query: runkit_function_copy
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RUNKIT_FUNCTION_COPY(3) 1 RUNKIT_FUNCTION_COPY(3) runkit_function_copy - Copy a function to a new function nameSYNOPSISbool runkit_function_copy (string $funcname, string $targetname)DESCRIPTIONPARAMETERSo $funcname - Name of existing function o $targetname - Name of new function to copy definition toRETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 A runkit_function_copy(3) example <?php function original() { echo "In a function "; } runkit_function_copy('original','duplicate'); original(); duplicate(); ?> The above example will output: In a function In a functionSEE ALSOrunkit_function_add(3), runkit_function_redefine(3), runkit_function_rename(3), runkit_function_remove(3). PHP Documentation Group RUNKIT_FUNCTION_COPY(3)
| Related Man Pages |
|---|
| runkit_method_rename(3) - php |
| set_magic_quotes_runtime(3) - php |
| runkit_method_add(3) - php |
| classkit_method_remove(3) - php |
| runkit_method_redefine(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Simple rules of the UNIX.COM forums: |
| Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |
| New Code Tags (Syntax Highlighting) |
| Please Welcome Ravinder Singh to the Moderation Team |