php手动加载视图文件

test.php: <?php $title = "测试标题"; $a = require 'test.html'; $a = exec($a); echo $a; test.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php echo $title;?></title> </head>
相关文章
相关标签/搜索