Lines Matching refs:fgetcsv
2 Various fgetcsv() error conditions
13 echo 'fgetcsv() with negative length' . \PHP_EOL;
15 var_dump( fgetcsv($file_handle, -10) );
20 var_dump( fgetcsv($file_handle, -10, $delimiter) );
25 var_dump( fgetcsv($file_handle, -10, $delimiter, $enclosure) );
30 echo 'fgetcsv() with delimiter as NULL' . \PHP_EOL;
32 var_dump( fgetcsv($file_handle, $length, NULL, $enclosure) );
37 echo 'fgetcsv() with enclosure as NULL' . \PHP_EOL;
39 var_dump( fgetcsv($file_handle, $length, $delimiter, NULL) );
44 echo 'fgetcsv() with delimiter & enclosure as NULL' . \PHP_EOL;
46 var_dump( fgetcsv($file_handle, $length, NULL, NULL) );
52 fgetcsv() with negative length
53 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
54 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
55 fgetcsv(): Argument #2 ($length) must be a greater than or equal to 0
56 fgetcsv() with delimiter as NULL
57 fgetcsv(): Argument #3 ($separator) must be a single character
58 fgetcsv() with enclosure as NULL
59 fgetcsv(): Argument #4 ($enclosure) must be a single character
60 fgetcsv() with delimiter & enclosure as NULL
61 fgetcsv(): Argument #3 ($separator) must be a single character