Warning: file_put_contents(): Only -1 of 59 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
runkit_function_add runkit_function_redefine runkit PHP Manual runkit_function_copy (PECL runkit:0.7-0.9) — Copy a function to new name Description bool ( string $funcname , $targetname ) Parame...
Forum und email

runkit_function_copy

(PECL runkit:0.7-0.9)

runkit_function_copy — Copy a function to a new function name

Description

bool runkit_function_copy ( string $funcname , string $targetname )

Parameters

funcname

Name of existing function

targetname

Name of new function to copy definition to

Return Values

Επιστρέφει TRUE σε επιτυχία ή FALSE σε αποτυχία.

Παραδείγματα

Example#1 A runkit_function_copy() example

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

The above example will output:

In a function
In a function