創建檔案或覆蓋操作
<?php echo file_put_contents("test.txt", "This is something."); ?>
追加操作
<?php file_put_contents("test.txt", "This is another something.", FILE_APPEND); ?>