- print_r: documentation ( source)
- fgetcsv: documentation ( source)
- fwrite: documentation ( source)
- fseek: documentation ( source)
- fopen: documentation ( source)
<?php
$fileContents = <<<EOD
"quote \"testing\"",""
"quote ""testing""",""
"quote \,testing\,",""
EOD;
$handle = fopen('php://memory', 'w');
fwrite($handle, $fileContents);
fseek($handle, 0);
while(($test = fgetcsv($handle)) !== false)
{
print_r($test);
}