單純寫入字串. <?php. $str = “Hello World”;. $file = fopen(“test.xml”,”a+”); //開啟檔案. fwrite($file,$str);//寫入字串. fclose($file);.
確定! 回上一頁