From 6501c09deda9a063eb47e05ca3cbb6d922b7eb49 Mon Sep 17 00:00:00 2001 From: Matt Li Date: Wed, 28 Jan 2015 05:49:05 +0000 Subject: [PATCH] Add escape_char paramter to fputcsv, formatting consistancy with fgetcsv git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335815 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fgetcsv.xml | 8 ++--- reference/filesystem/functions/fputcsv.xml | 34 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/reference/filesystem/functions/fgetcsv.xml b/reference/filesystem/functions/fgetcsv.xml index 3956e7a53e..5282f27623 100644 --- a/reference/filesystem/functions/fgetcsv.xml +++ b/reference/filesystem/functions/fgetcsv.xml @@ -14,7 +14,7 @@ intlength0 stringdelimiter"," stringenclosure'"' - stringescape"\\" + stringescape"\" Similar to fgets except that @@ -54,7 +54,7 @@ delimiter - Set the field delimiter (one character only). + The optional delimiter parameter sets the field delimiter (one character only). @@ -62,7 +62,7 @@ enclosure - Set the field enclosure character (one character only). + The optional enclosure parameter sets the field enclosure character (one character only). @@ -70,7 +70,7 @@ escape - Set the escape character (one character only). Defaults as a backslash. + The optional escape parameter sets the escape character (one character only). diff --git a/reference/filesystem/functions/fputcsv.xml b/reference/filesystem/functions/fputcsv.xml index c937ad22d0..0701ca168b 100644 --- a/reference/filesystem/functions/fputcsv.xml +++ b/reference/filesystem/functions/fputcsv.xml @@ -14,6 +14,7 @@ arrayfields stringdelimiter"," stringenclosure'"' + stringescape_char"\" fputcsv formats a line (passed as a @@ -58,6 +59,15 @@ + + escape_char + + + The optional escape_char parameter sets the + escape character (one character only). + + + @@ -69,6 +79,30 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.5.4 + + The escape_char parameter was added + + + + + + + + &reftitle.examples;