我有一件事
$example['description']="print this text: *** " ;
而不是*我喜欢包含一个文件/home/path/public_ html /list.php,其中存储html文本(php格式化)。
如何实现该功能
include ("/home/path/public_html/list.php");
在变量里面?谢谢你的帮助。
发布于 2013-09-27 13:26:29
一种办法是:
ob_start();
include "/home/path/public_html/list.php";
$text = ob_get_clean();
$example['description'] = "print this text: $text";
https://stackoverflow.com/questions/19060256
复制相似问题