From d8cfd5d911c0a800e546445cdc2e95b8f77b9169 Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Wed, 8 Sep 2004 05:55:52 +0000 Subject: [PATCH] Explained parameters in a varlist git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168168 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fgetcsv.xml | 63 ++++++++++++++-------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/reference/filesystem/functions/fgetcsv.xml b/reference/filesystem/functions/fgetcsv.xml index bb836d04f4..9d0f259975 100644 --- a/reference/filesystem/functions/fgetcsv.xml +++ b/reference/filesystem/functions/fgetcsv.xml @@ -1,5 +1,5 @@ - + @@ -15,30 +15,51 @@ stringdelimiter stringenclosure + + + + + handle + + + A valid file pointer to a file successfully opened by fopen, + popen, or fsockopen. + + + + + length (Optional) + + + Must be greater than the longest line (in characters) to be found in the CSV file + (allowing for trailing line-end characters). It became optional in PHP 5. + + + + + delimiter (Optional) + + + Set the field delimiter (one character only). Defaults as a comma. + + + + + enclosure (Optional) + + + Set the field enclosure character (one character only). Defaults as a double quotation mark. Added in PHP 4.3.0. + + + + + + Similar to fgets except that fgetcsv parses the line it reads for fields in CSV format and returns an array containing - the fields read. The optional third delimiter - parameter defaults as a comma, and the optional enclosure - defaults as a double quotation mark. Both delimiter - and enclosure are limited to one character. If - either is more than one character, only the first character is used. - - - - The enclosure parameter was added in PHP 4.3.0. - - - - The handle parameter must be a valid file pointer to a file - successfully opened by fopen, - popen, or fsockopen. - - - The length parameter must be greater than the longest - line to be found in the CSV file (allowing for trailing line-end characters). - It became optional in PHP 5. + the fields read. fgetcsv returns &false; on error, including