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 empty string' . \PHP_EOL;
32 var_dump( fgetcsv($file_handle, $length, '', $enclosure) );
37 echo 'fgetcsv() with enclosure as empty string' . \PHP_EOL;
39 var_dump( fgetcsv($file_handle, $length, $delimiter, '') );
44 echo 'fgetcsv() with delimiter & enclosure as empty string' . \PHP_EOL;
46 var_dump( fgetcsv($file_handle, $length, '', '') );
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 empty string
57 fgetcsv(): Argument #3 ($separator) must be a single character
58 fgetcsv() with enclosure as empty string
59 fgetcsv(): Argument #4 ($enclosure) must be a single character
60 fgetcsv() with delimiter & enclosure as empty string
61 fgetcsv(): Argument #3 ($separator) must be a single character