Lines Matching refs:fgetcsv

2 Test fgetcsv() function : error conditions
6 …Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosu…
12 echo "-- Testing fgetcsv() with zero argument --\n";
13 var_dump( fgetcsv() );
16 echo "-- Testing fgetcsv() with more than expected number of arguments --\n";
22 var_dump( fgetcsv($fp, $len, $delim, $enclosure, $escape, $fp) );
26 echo "-- Testing fgetcsv() with invalid arguments --\n";
35 /* loop to test fgetcsv() with different invalid type of args */
38 var_dump( fgetcsv($invalid_args[$loop_counter - 1]) ); // with default args
39 …var_dump( fgetcsv($invalid_args[$loop_counter - 1], $len, $delim, $enclosure, $escape) ); // all a…
45 -- Testing fgetcsv() with zero argument --
47 Warning: fgetcsv() expects at least 1 parameter, 0 given in %s on line %d
49 -- Testing fgetcsv() with more than expected number of arguments --
51 Warning: fgetcsv() expects at most 5 parameters, 6 given in %s on line %d
53 -- Testing fgetcsv() with invalid arguments --
56 Warning: fgetcsv() expects parameter 1 to be resource, string given in %s on line %d
59 Warning: fgetcsv() expects parameter 1 to be resource, string given in %s on line %d
63 Warning: fgetcsv() expects parameter 1 to be resource, integer given in %s on line %d
66 Warning: fgetcsv() expects parameter 1 to be resource, integer given in %s on line %d
70 Warning: fgetcsv() expects parameter 1 to be resource, float given in %s on line %d
73 Warning: fgetcsv() expects parameter 1 to be resource, float given in %s on line %d
77 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in %s on line %d
80 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in %s on line %d
84 Warning: fgetcsv() expects parameter 1 to be resource, array given in %s on line %d
87 Warning: fgetcsv() expects parameter 1 to be resource, array given in %s on line %d
91 Warning: fgetcsv() expects parameter 1 to be resource, object given in %s on line %d
94 Warning: fgetcsv() expects parameter 1 to be resource, object given in %s on line %d