Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

3.11. 文件操作

3.11.1. file_put_contents

			
			

创建文件或覆盖操作

			
<?php
echo file_put_contents("test.txt", "This is something.");
?>			
			
			

追加操作

			
<?php
file_put_contents("test.txt", "This is another something.", FILE_APPEND);
?>