1--TEST--
2SPL: SplFileObject::setCsvControl variation 001
3--CREDITS--
4Erwin Poeze <erwin.poeze at gmail.com>
5--FILE--
6<?php
7file_put_contents('csv_control_data_variation001.csv',
8<<<CDATA
9"groene appelen",10
10"gele bananen",20
11"rode kersen",30
12CDATA
13);
14$s = new SplFileObject('csv_control_data_variation001.csv');
15$s->setFlags(SplFileObject::READ_CSV);
16$s->setCsvControl();
17foreach ($s as $row) {
18    list($fruit, $quantity) = $row;
19    echo "$fruit : $quantity\n";
20}
21?>
22--CLEAN--
23<?php
24unlink('csv_control_data_variation001.csv');
25?>
26--EXPECT--
27groene appelen : 10
28gele bananen : 20
29rode kersen : 30
30