1--TEST-- 2fputcsv(): Checking data after calling the function 3--FILE-- 4<?php 5 6$file = dirname(__FILE__) .'/fgetcsv-test.csv'; 7 8$data = array(1, 2, 'foo', 'haha', array(4, 5, 6), 1.3, null); 9 10$fp = fopen($file, 'w'); 11 12fputcsv($fp, $data); 13 14var_dump($data); 15 16?> 17--CLEAN-- 18<?php 19$file = dirname(__FILE__) .'/fgetcsv-test.csv'; 20unlink($file); 21?> 22 23--EXPECTF-- 24Notice: Array to string conversion in %s on line %d 25array(7) { 26 [0]=> 27 int(1) 28 [1]=> 29 int(2) 30 [2]=> 31 string(3) "foo" 32 [3]=> 33 string(4) "haha" 34 [4]=> 35 array(3) { 36 [0]=> 37 int(4) 38 [1]=> 39 int(5) 40 [2]=> 41 int(6) 42 } 43 [5]=> 44 float(1.3) 45 [6]=> 46 NULL 47} 48