From [[http://www.electrictoolbox.com/php-str-getcsv-function/]]\\
PHP has a new function called str_getcsv which works the same way as fgetcsv but extracts CSV data from a string instead of from a file. Unfortunately this is only available from PHP 5.3.0\\
Use this if needed..\\
<code>
if(!function_exists('str_getcsv')) {
    function str_getcsv($input, $delimiter = ",", $enclosure = '"', $escape = "\\") {
        $fp = fopen("php://memory", 'r+');
        fputs($fp, $input);
        rewind($fp);
        $data = fgetcsv($fp, null, $delimiter, $enclosure); // $escape only got added in 5.3.0
        fclose($fp);
        return $data;
    }
}
</code>