1--TEST--
2SplFileObject::fgetcsv with alternative delimiter
3--FILE--
4<?php
5$fp = fopen('SplFileObject__fgetcsv4.csv', 'w+');
6fputcsv($fp, array(
7    'field1',
8    'field2',
9    'field3',
10    5
11), ',', '"');
12fclose($fp);
13
14$fo = new SplFileObject('SplFileObject__fgetcsv4.csv');
15var_dump($fo->fgetcsv(',', '"'));
16?>
17--CLEAN--
18<?php
19unlink('SplFileObject__fgetcsv4.csv');
20?>
21--EXPECT--
22array(4) {
23  [0]=>
24  string(6) "field1"
25  [1]=>
26  string(6) "field2"
27  [2]=>
28  string(6) "field3"
29  [3]=>
30  string(1) "5"
31}
32