Home
last modified time | relevance | path

Searched refs:str_getcsv (Results 1 – 12 of 12) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dstr_getcsv_001.phpt2 str_getcsv(): Testing using various arguments
7 var_dump(str_getcsv('"f", "o", ""', escape: ''));
9 var_dump(str_getcsv('foo||bar', '|', escape: ''));
11 var_dump(str_getcsv('foo|bar', '|', escape: ''));
13 var_dump(str_getcsv('|foo|-|bar|', '-', '|', escape: ''));
15 var_dump(str_getcsv('|f.|.|bar|.|-|-.|', '.', '|', '-'));
17 var_dump(str_getcsv('.foo..bar.', '.', '.', '.'));
19 var_dump(str_getcsv('.foo . . bar .', ' ', '.', ''));
21 var_dump(str_getcsv('" "" "', ' ', escape: ''));
23 var_dump(str_getcsv('', escape: ''));
H A Dstr_getcsv_errors.phpt2 str_getcsv(): Invalid arguments
8 var_dump(str_getcsv('csv_string', 'separator', '"', ''));
13 var_dump(str_getcsv('csv_string', ',', 'enclosure', ''));
18 var_dump(str_getcsv('csv_string', ',', '"', 'escape'));
25 ValueError: str_getcsv(): Argument #2 ($separator) must be a single character
26 ValueError: str_getcsv(): Argument #3 ($enclosure) must be a single character
27 ValueError: str_getcsv(): Argument #4 ($escape) must be empty or a single character
H A Dbug55674.phpt2 Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records)
5 var_dump(str_getcsv("0\t\t\"2\"\n", "\t", escape: ''));
6 var_dump(str_getcsv("0\t \t'2'\n", "\t", "'", escape: ''));
7 var_dump(str_getcsv(",,,,", escape: ''));
8 var_dump(str_getcsv(" \t \t\t\t ", "\t", escape: ''));
H A Dgh11982.phpt2 GH-11982 (str_getcsv returns null byte for unterminated quoted string)
5 var_dump(str_getcsv('"', escape: ''));
6 var_dump(str_getcsv('"field","', escape: ''));
7 var_dump(str_getcsv('"","a', escape: ''));
H A Dgh12151.phpt2 GH-12151 (str_getcsv ending with escape zero segfualt)
5 var_export(str_getcsv("y",",","y","\000"));
7 var_export(str_getcsv("\0yy","y","y","\0"));
H A Dstr_getcsv_002.phpt2 str_getcsv() with empty $escape
8 print_r(str_getcsv($contents, ',', '"', ''));
H A Doss_fuzz_57392.phpt5 var_dump(str_getcsv(
H A Dbug65947.phpt8 $adata = str_getcsv($csv,";", escape: '');
/php-src/ext/standard/tests/file/
H A Dbug72330.phpt17 $fields = str_getcsv($string, ';', '"', "#");
/php-src/ext/standard/
H A Dbasic_functions.stub.php2568 function str_getcsv(string $string, string $separator = ",", string $enclosure = "\"", string $esca…
H A Dbasic_functions_arginfo.h2567 ZEND_FUNCTION(str_getcsv);
3168 ZEND_FE(str_getcsv, arginfo_str_getcsv)
H A Dstring.c5415 PHP_FUNCTION(str_getcsv) argument

Completed in 82 milliseconds