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

# classkit_import

(PECL)

classkit_import -- Import new class method definitions from a file

## Description

array classkit_import ( string filename )

> 注: 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

filename

  The filename of the class method definitions to import

## Return Values

Associative array of imported methods

## �d��

範例 1. classkit_import() example
`<?php // file: newclass.php class Example { function foo() { return "bar!\n"; } } ?>`
`<?php // requires newclass.php (see above) class Example { function foo() { return "foo!\n"; } } $e = new Example(); // output original echo $e->foo(); // import replacement method classkit_import('newclass.php'); // output imported echo $e->foo(); ?>`
The above example will output:
    foo!
    bar!

## �Ѧ�

classkit_method_add()
classkit_method_copy()

前一頁 | 內容 | 下一頁
Classkit Functions | 上一層 | classkit_method_add