You can edit almost every page by Creating an account. Otherwise, see the FAQ.

File put contents();

提供:EverybodyWiki Bios & Wiki
移動先:案内検索

この関数は第一因数に指定されたファイルパスのファイルに第二因数の内容を書き込みます(追記ではありません)。その時ファイルがなければ作成します。

使用方法の例[編集]

file_put_contents("sample.txt","write text"); 結果:sample.txt write text このように書き込みされます 上書きの例 file_put_contents("sample.txt","上書き前"); file_put_contents("sample.txt","上書き後"); 結果:sample.txt 上書き後 このように上書きされて書き込みされます

関連項目[編集]


This article "File put contents();" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:File put contents();.



Read or create/edit this page in another language[編集]