看板 [ PHP ]
討論串[請益] php與html頁面分開寫
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者shadowjohn (會吐槽的最強)時間13年前 (2012/02/08 15:28), 編輯資訊
0
0
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個字)

推噓4(4推 0噓 6→)留言10則,0人參與, 最新作者jackyeah1213 (frog)時間13年前 (2012/02/08 15:10), 編輯資訊
0
0
0
內容預覽:
想請問要怎麼將html與php頁面分開寫呢?. ex:. <div><?php echo "this is test";?></div>. 這是我爬文看到比較類似的(也有可能我眼殘~"~). 有辦法將他們分開寫嗎?. 我google有看到類似的寫法. html:. <div>{test}</div>
(還有59個字)
首頁
上一頁
1
下一頁
尾頁