从php扩展返回php代码作为返回值
我想返回以下php代码:从php扩展返回php代码作为返回值,php,c++,c,swig,php-extension,Php,C++,C,Swig,Php Extension,我想返回以下php代码: (include "x.php"); 作为swig开发的php扩展的返回值。我搜索过了,但没有找到具体的答案。此返回值将在php脚本中显示如下 <?php dl("myextension.dll"); my_extension_function(); /*this function call should output the following: (include "x.php"); in this php script*/ ?> 请帮忙
(include "x.php");
作为swig开发的php扩展的返回值。我搜索过了,但没有找到具体的答案。此返回值将在php脚本中显示如下
<?php
dl("myextension.dll");
my_extension_function(); /*this function call should output the following:
(include "x.php"); in this php script*/
?>
请帮忙
问候,
KPMx.php中有什么?是否要捕获输出?是的,我想在php脚本中显示x.php的输出x.php中有什么?是否要捕获输出?是的,我想在php脚本中显示x.php的输出