runkit_function_copy(3) php man page | unix.com

Man Page: runkit_function_copy

Operating Environment: php

Section: 3

RUNKIT_FUNCTION_COPY(3) 						 1						   RUNKIT_FUNCTION_COPY(3)

runkit_function_copy - Copy a function to a new function name

SYNOPSIS
bool runkit_function_copy (string $funcname, string $targetname)
DESCRIPTION
PARAMETERS
o $funcname - Name of existing function o $targetname - Name of new function to copy definition to
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #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 function
SEE ALSO
runkit_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
bcompiler_write_function(3) - php
classkit_method_remove(3) - php
function_exists(3) - php
runkit_method_copy(3) - php
runkit_method_remove(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun