Home >php教程 >php手册 >深入解析php模板技术原理【一】

深入解析php模板技术原理【一】

WBOY
WBOYOriginal
2016-06-13 12:30:591282browse

1、模板的由来
在没有模板技术之前,使用PHP开发程序,通常都是php代码和html混编在一起。比如说新闻列表,很可能就是一个newslist.php页面,结构如下:

 
//从数据库中读取出要显示的新闻记录 
?> 
 

…….. 
 
 
 
 While ($news = mysql_fetch_array($result)) { 
?> 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn