Specify explicitly the behaviour when the file already exists

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241493 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nick Berard 2007-08-18 04:19:49 +00:00
parent b3fd3001c5
commit 30a9c08673

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.16 $ -->
<!-- $Revision: 1.17 $ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.file-put-contents">
<refnamediv>
<refname>file_put_contents</refname>
@ -20,6 +20,11 @@
<function>fwrite</function> and <function>fclose</function> successively
to write data to a file.
</para>
<para>
If <parameter>filename</parameter> does not exist, the file is created.
Otherwise, the existing file is overwritten, unless the
<constant>FILE_APPEND</constant> flags is set.
</para>
</refsect1>
<refsect1 role="parameters">