Home
last modified time | relevance | path

Searched refs:fputcsv (Results 1 – 25 of 44) sorted by path

12

/php-src/ext/spl/
H A Dspl_directory.c2348 PHP_METHOD(SplFileObject, fputcsv) in PHP_METHOD() argument
H A Dspl_directory.stub.php256 …public function fputcsv(array $fields, string $separator = ",", string $enclosure = "\"", string $… function in SplFileObject
H A Dspl_directory_arginfo.h340 ZEND_METHOD(SplFileObject, fputcsv);
452 ZEND_ME(SplFileObject, fputcsv, arginfo_class_SplFileObject_fputcsv, ZEND_ACC_PUBLIC)
/php-src/ext/spl/tests/SplFileObject/
H A DSplFileObject_fgetcsv_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_delimiter_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_delimiter_error.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_enclosure_basic.phpt6 fputcsv($fp, array(
H A DSplFileObject_fgetcsv_enclosure_error.phpt6 fputcsv($fp, array(
H A DSplFileObject_fputcsv.phpt2 SplFileObject::fputcsv(): functionality tests
32 $fo->fputcsv(explode(',', $v));
H A DSplFileObject_fputcsv_002.phpt2 SplFileObject::fputcsv(): Checking data after calling the function
9 $fo->fputcsv($data);
H A DSplFileObject_fputcsv_variation1.phpt2 Test fputcsv() : usage variations - with all parameters specified
6 /* Testing fputcsv() to write to a file when all its parameters are provided */
8 echo "*** Testing fputcsv() : with all parameters specified ***\n";
50 var_dump( $fo->fputcsv($csv_field, $delimiter, $enclosure) );
68 *** Testing fputcsv() : with all parameters specified ***
H A DSplFileObject_fputcsv_variation10.phpt2 SplFileObject::fputcsv(): Usage variations -- with line without any CSV fields
6 /* Testing fputcsv() to write to a file when the field has no CSV format */
8 echo "*** Testing fputcsv() : with no CSV format in the field ***\n";
42 var_dump( $fo->fputcsv($csv_field) );
61 *** Testing fputcsv() : with no CSV format in the field ***
H A DSplFileObject_fputcsv_variation11.phpt2 SplFileObject::fputcsv(): Usage variations -- with default enclosure value
6 /* Testing fputcsv() to write to a file when default enclosure value is provided */
8 echo "*** Testing fputcsv() : with default enclosure value ***\n";
50 var_dump( $fo->fputcsv($csv_field, $delimiter) );
68 *** Testing fputcsv() : with default enclosure value ***
H A DSplFileObject_fputcsv_variation12.phpt2 SplFileObject::fputcsv(): Usage variations -- with default enclosure and different delimiter
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter value
9 echo "*** Testing fputcsv() : with default enclosure and different delimiter value ***\n";
51 var_dump( $fo->fputcsv($csv_field, '+') );
69 *** Testing fputcsv() : with default enclosure and different delimiter value ***
H A DSplFileObject_fputcsv_variation13.phpt2 Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with default enclosure & delimiter of two chars ***\n";
14 var_dump($fo->fputcsv(array('water', 'fruit'), ',,', '"'));
29 *** Testing fputcsv() : with default enclosure & delimiter of two chars ***
30 SplFileObject::fputcsv(): Argument #2 ($separator) must be a single character
H A DSplFileObject_fputcsv_variation14.phpt2 Test fputcsv() : usage variations - with enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode …
14 var_dump($fo->fputcsv(array('water', 'fruit'), ',,', '""'));
19 var_dump($fo->fputcsv(array('water', 'fruit'), ',', '""'));
34 *** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode ***
35 SplFileObject::fputcsv(): Argument #2 ($separator) must be a single character
36 SplFileObject::fputcsv(): Argument #3 ($enclosure) must be a single character
H A DSplFileObject_fputcsv_variation15.phpt2 SplFileObject::fputcsv() with empty $escape
11 $file->fputcsv($record, ',', '"', '');
H A DSplFileObject_fputcsv_variation16.phpt2 SplFileObject::fputcsv() with user provided eol
15 $file->fputcsv($record, ',', '"', '', $eol_char);
H A DSplFileObject_fputcsv_variation5.phpt2 Test fputcsv() : usage variations - with default arguments value
6 /* Testing fputcsv() to write to a file when default arguments values are considered */
8 echo "*** Testing fputcsv() : with default arguments value ***\n";
50 var_dump( $fo->fputcsv($csv_field) );
68 *** Testing fputcsv() : with default arguments value ***
H A DSplFileObject_fputcsv_variation6.phpt2 Test fputcsv() : usage variations - with different delimiter and enclosure
7 Testing fputcsv() to write to a file when delimiter are different from those
11 echo "*** Testing fputcsv() : with different delimiter and enclosure ***\n";
53 var_dump( $fo->fputcsv($csv_field, '+', '%') );
71 *** Testing fputcsv() : with different delimiter and enclosure ***
H A DSplFileObject_fputcsv_variation7.phpt2 Test fputcsv() : usage variations - with different delimiter and same enclosure
7 Testing fputcsv() to write to a file when enclosure is same but delimiter is different from those
11 echo "*** Testing fputcsv() : with different delimiter and same enclosure ***\n";
53 var_dump( $fo->fputcsv($csv_field, '+', $enclosure) );
71 *** Testing fputcsv() : with different delimiter and same enclosure ***
H A DSplFileObject_fputcsv_variation8.phpt2 Test fputcsv() : usage variations - with same delimiter and different enclosure
7 Testing fputcsv() to write to a file when delimiter is same but enclosure is different from those
11 echo "*** Testing fputcsv() : with same delimiter and different enclosure ***\n";
53 var_dump( $fo->fputcsv($csv_field, $delimiter, '+') );
71 *** Testing fputcsv() : with same delimiter and different enclosure ***
H A Dbug68479.phpt2 Bug #68479 (Escape parameter missing from SplFileObject::fputcsv)
6 $method = new ReflectionMethod('SplFileObject', 'fputcsv');
H A Dbug75917.phpt12 $tmp->fputcsv($row);
H A Dbug77024.phpt7 $file->fputcsv(['foo', 'bar', 'baz']);

Completed in 35 milliseconds

12