From 5020ffe84dec3bfdbaf52f2e9f425c8789888df9 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 24 Oct 2004 17:22:50 +0000 Subject: [PATCH] data can also be an array git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@171203 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/file-put-contents.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/filesystem/functions/file-put-contents.xml b/reference/filesystem/functions/file-put-contents.xml index 4003c3fd8f..0d715c1f59 100644 --- a/reference/filesystem/functions/file-put-contents.xml +++ b/reference/filesystem/functions/file-put-contents.xml @@ -1,5 +1,5 @@ - + file_put_contents @@ -10,7 +10,7 @@ intfile_put_contents stringfilename - stringdata + mixeddata intflags resourcecontext @@ -24,6 +24,11 @@ and/or FILE_APPEND, however the FILE_USE_INCLUDE_PATH option should be used with caution. + + You can also specify the data parameter as an array + (not multi-dimension arrays). This is equivalent to + file_put_contents($filename, join('', $array)). + ¬e.bin-safe; &tip.fopen-wrapper;