<?php
if(file_exists($file)){
unlink($file);
}
$james=fopen($file,"a");
$content = stripslashes($content); //控制引号的转义
fwrite($james,$content);
fclose($james);
echo "保存成功!";
?>
php写文件(不转义引号)
最新推荐文章于 2021-03-26 07:24:09 发布