string $status) */ public static function parseResults($csvContent) { $fh = fopen('php://memory', 'r+'); fwrite($fh, $csvContent); rewind($fh); $results = array(); while (($r = fgetcsv($fh)) !== FALSE) { $name = str_replace('.', '::', trim($r[0])); $status = trim($r[1]); $results[$name] = $status; } return $results; } }