src/Arrays/Conversions/From/Csv.php
public function Convert($csv)
	{
		// Create a file pointer to our CSV Data
		$fp = fopen('php://temp/maxmemory:'.$this->memory*(1024*1024), 'r+');
		fputs($fp, $csv);
		rewind($fp);
		
		// Loop through the CSV Lines
		$row = 1; $rows = array();
		while (($data = fgetcsv($fp, $this->length, $this->delimiter, $this->enclosure)) !== false)
		{
			// Create the heading array
			if ($this->headings == true && $row == 1) $headingTexts = $data;
			
			// Add the csv line into the array using the heading names
			elseif ($this->headings == true)
			{
				foreach ($data as $key => $value) 
				{
					unset($data[$key]);
					$data[$headingTexts[$key]] = $value;
				}
				$rows[] = $data;
			}
			
			// Otherwise dont worry about the headings at all
			else $rows[] = $data;
			
			// Increase the row count
			$row++;
		}
		
		// Finish Up
		fclose($fp);
		return $rows;
	}
public function Convert($csv)
	{
		// Create a file pointer to our CSV Data
		$fp = fopen('php://temp/maxmemory:'.$this->memory*(1024*1024), 'r+');
		fputs($fp, $csv);
		rewind($fp);
		
		// Loop through the CSV Lines
		$row = 1; $rows = array();
		while (($data = fgetcsv($fp, $this->length, $this->delimiter, $this->enclosure)) !== false)
		{
			// Create the heading array
			if ($this->headings == true && $row == 1) $headingTexts = $data;
			
			// Add the csv line into the array using the heading names
			elseif ($this->headings == true)
			{
				foreach ($data as $key => $value) 
				{
					unset($data[$key]);
					$data[$headingTexts[$key]] = $value;
				}
				$rows[] = $data;
			}
			
			// Otherwise dont worry about the headings at all
			else $rows[] = $data;
			
			// Increase the row count
			$row++;
		}
		
		// Finish Up
		fclose($fp);
		return $rows;
	}
Method: Convert
=========================================================================
This will do the actual converting

Parameters:
-------------------------------------------------------------------------
$csv - The CSV to convert to an array

Returns:
-------------------------------------------------------------------------
array