【发布时间】:2011-11-12 11:53:28
【问题描述】:
在 php 中假设test.php 中有一个名为“test_class”的类,有两个方法:method_1 和method_2。
这是我的test.php 文件:
class test_class
{
function method_1
{ ....... }
function method_2
{ ....... }
}
现在,使用其他 php 文件中的“exec”命令,我只想运行 test_class 中的 method_1。
我想知道如何实现?
【问题讨论】: