21,887
社区成员
发帖
与我相关
我的任务
分享
$file_a = file_get_contents("a.php");
$file_b = file_get_contents("b.php");
$file_c = $file_a.$file_b;
$file_c = str_replace("<?php","",$file_c);
$file_c = str_replace("?>","",$file_c);
$file_c = "<?php".$file_c."?>";
file_put_contents("c.php",$file_c)or die("文件失败");
die("合并成功");