<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_30688"> <div class="blockcode"> <div id="code_A8F"><ol> <li> <li><?php<li>class word<li>{<li>function start()<li>{<li>ob_start();<li>print'<html xmlns:o="urn:schemas-microsoft-com:office:office"<li>xmlns:w="urn:schemas-microsoft-com:office:word"<li>xmlns="http://www.w3.org/TR/REC-html40">';</li> <li>}</li> <li>function save($path)</li> <li>{</li> <li>print "</html>";</li> <li>$data = ob_get_contents();</li> <li>ob_end_clean();</li> <li>$this->wirtefile ($path,$data);</li> <li>}</li> <li>function wirtefile ($fn,$data)</li> <li>{</li> <li>$fp=fopen($fn,"wb");</li> <li>fwrite($fp,$data);</li> <li>fclose($fp);</li> <li>}</li> <li>}</li> <li>?></li> <li> </li> </ol></div> <em onclick="copycode($('code_A8F'));">复制代码</em> </div>编辑推荐: <font color="#002280">php导出word格式文档的实例代码</font> <font color="#002280">php生成excel或word文档的最简单方法</font> <font color="#002280">php生成word文档(读取数据库)</font> <font color="#002280">php使用phpword生成word文档的例子</font> <font color="#002280">php生成word文件的简单范例</font> <font color="#002280">php 生成 导出word(可包含图片)的代码</font> <font color="#002280">php生成word的例子</font> <font color="#002280">php使用phpword生成word文档</font> </td></tr></table> <div id="comment_30688" class="cm"> </div> <div id="post_rate_div_30688"></div> <br><br>