看板
[ PHP ]
討論串[請益] php與html頁面分開寫
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
a.php. <?php. $tpl=ARRAY();. $tpl['test']="this is test";. $output_data=file_get_contents("b.htm");. foreach($tpl as $k=>$v). {. $output_data=str_repl
(還有194個字)
內容預覽:
想請問要怎麼將html與php頁面分開寫呢?. ex:. <div><?php echo "this is test";?></div>. 這是我爬文看到比較類似的(也有可能我眼殘~"~). 有辦法將他們分開寫嗎?. 我google有看到類似的寫法. html:. <div>{test}</div>
(還有59個字)
首頁
上一頁
1
下一頁
尾頁