PHP ��U
前一頁 |  | 下一頁

# runkit_method_remove

(PECL)

runkit_method_remove -- Dynamically removes the given method

## Description

bool runkit_method_remove ( string classname, string methodname )

> 注: This function cannot be used to manipulate the currently running (or chained) method.

警告
�o�Ө�ƬO����ʽ��C�o�Ө�ƪ�欰�B�W�١B�M����ƪ����L���b��PHP�o�椤�i��|�b�q�p�U���ܡC �ϥΦ��ݦۦ�Ӿ᭷�I�C

## Parameters

classname

  The class in which to remove the method

methodname

  The name of the method to remove

## Return Values

�\�^��`TRUE`�Ѧ^��`FALSE`�C

## �d��

範例 1. runkit_method_remove() example

`<?php class Example { function foo() { return "foo!\n"; } function bar() { return "bar!\n"; } } // Remove the 'foo' method runkit_method_remove( 'Example', 'foo' ); echo implode(' ', get_class_methods('Example')); ?>`

The above example will output:

    bar

## �Ѧ�

runkit_method_add()
runkit_method_copy()
runkit_method_redefine()
runkit_method_rename()
runkit_function_remove()

前一頁 | 內容 | 下一頁
runkit_method_redefine | 上一層 | runkit_method_rename