<分区>
Possible Duplicate:
How do i purge the contents of a text file in php
你好..
如何使用 php 删除我的文本文件 myfile.txt
中存储的所有数据(空白)??
标签 php
<分区>
Possible Duplicate:
How do i purge the contents of a text file in php
你好..
如何使用 php 删除我的文本文件 myfile.txt
中存储的所有数据(空白)??
最佳答案
PHP 的 file_put_contents()
在这种情况下应该有用。下面是一些示例代码:
file_put_contents('myfile.txt', '');
关于php - 清除 txt 文件中的所有数据 - php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5650958/