$str = file_get_contents(“hello.txt”);
$str = “hello world”.$str;
file_put_contents(“hello.txt”,$str);
本文展示了一个简单的PHP脚本示例,该脚本用于读取文件内容,并在其前添加特定字符串后保存回文件。
$str = file_get_contents(“hello.txt”);
$str = “hello world”.$str;
file_put_contents(“hello.txt”,$str);

被折叠的 条评论
为什么被折叠?