/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
file
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/file/fgetcsv_variation32.phpt
--TEST-- fgetcsv() with empty $escape --FILE-- <?php $contents = <<<EOS "cell1","cell2\\","cell3","cell4" "\\\\\\line1 line2\\\\\\" EOS; $stream = fopen('php://memory', 'w+'); fwrite($stream, $contents); rewind($stream); while (($data = fgetcsv($stream, 0, ',', '"', '')) !== false) { print_r($data); } fclose($stream); ?> --EXPECT-- Array ( [0] => cell1 [1] => cell2\ [2] => cell3 [3] => cell4 ) Array ( [0] => \\\line1 line2\\\ )
Copyright ©2k19 -
Hexid
|
Tex7ure