怎么将php的内容输出到html

如题所述

<?php
function savefile($path,$type="w",$content){
if($fopen=@fopen($path,$type)){
@fwrite($fopen,$content);
return $fopen;
@fclose($fopen);
}
}
savefile("路径/1.html","w","PHP输出的内容");
?>

温馨提示:答案为网友推荐,仅供参考
相似回答