更新时间:2022-04-25 10:08:50
首先使用 require_once() 来包含 test.php,即
require_once()
First use require_once() to include the test.php, i.e.
require_once("path\test.php");
然后你可以简单地调用 this-function() 就可以了.
this-function()
Then you can simply call this-function() and it will work.
您可以将其用作参考:http://www.php.net/manual/en/function.require.php
在PHP中的子构造函数之前调用父构造函数
如何在自定义PHP脚本中调用WordPress函数
如何在自定义 .php 文件中包含 WordPress 函数?
自定义PHP函数以验证Joomla中的正确密码
在 Wordpress 中调用自定义 php 模板中的函数
PHP 使用用户自定义的比较函数对数组中的值进行排序
编译器实例化模板类中的函数,甚至不调用它
调用模板类中的模板函数
如何在自定义.php文件中包含Wordpress函数?
R reshape2中的cast()调用的自定义聚合函数出错