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>
相關文章
相關標籤/搜索