nlopess         Sun Oct 24 13:22:51 2004 EDT

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   file-put-contents.xml 
  Log:
  data can also be an array
  
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/file-put-contents.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/filesystem/functions/file-put-contents.xml
diff -u phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.3 
phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.4
--- phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.3  Tue May 18 
10:23:19 2004
+++ phpdoc/en/reference/filesystem/functions/file-put-contents.xml      Sun Oct 24 
13:22:50 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
   <refentry id="function.file-put-contents">
    <refnamediv>
     <refname>file_put_contents</refname> 
@@ -10,7 +10,7 @@
      <methodsynopsis>
       <type>int</type><methodname>file_put_contents</methodname>
       <methodparam><type>string</type><parameter>filename</parameter></methodparam>
-      <methodparam><type>string</type><parameter>data</parameter></methodparam>
+      <methodparam><type>mixed</type><parameter>data</parameter></methodparam>
       <methodparam 
choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
       <methodparam 
choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
      </methodsynopsis>
@@ -24,6 +24,11 @@
      and/or <constant>FILE_APPEND</constant>, however the
      <constant>FILE_USE_INCLUDE_PATH</constant> option should be used with caution.
     </simpara>
+    <para>
+     You can also specify the <parameter>data</parameter> parameter as an array
+     (not multi-dimension arrays). This is equivalent to
+     <literal>file_put_contents($filename, join('', $array))</literal>.
+    </para>
     &note.bin-safe;
     &tip.fopen-wrapper;
     <simpara>

Reply via email to