日期:2014-05-17 浏览次数:20493 次
$read_str='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>模板</title>
</head>
<body style="margin:0">
<input type="hidden" id="hd_nid" />
<table align="center" width="960px" cellpadding="0" cellspacing="0" border="1">
<tr>
<td style="height:50px;text-align:center;font-size:18px;font-weight:bold">{标题}</td>
</tr>
<tr>
<td style="font-size:14px;line-height:25px">{流量}</td>
</tr>
<tr>
<td style="font-size:14px;line-height:25px">{内容}</td>
</tr>
<tr>
<td style="font-size:14px;line-height:25px">{分页}</td>
</tr>
</table>
</body>
</html>';
$read_str = str_replace("{标题}","111",$read_str);
$read_str = str_replace("{内容}","222",$read_str);
echo($read_str);
------解决方案--------------------