Home > PHP > Function > runkit > runkit_method_copy()

runkit_method_copy()

runkit_method_copy - Copies a method from class to another

Syntax

bool runkit_method_copy (string $dClass, string $dMethod, string $sClass, string $sMethod)

Arguments

  • dClass - Destination class for copied method
  • dMethod - Destination method name
  • sClass - Source class of the method to copy
  • sMethod - Name of the method to copy from the source class. If this parameter is omitted, the value of dMethod is assumed.

Description

Version

PHP PECL runkit >= 0.7.0

Return value

Returns TRUE on success or FALSE on failure.