src/Csv.php
public function toAssociative($data) {
	foreach ($data as $i => $value) {
		$headerName = $this->headers[$i];
		$data[$headerName] = $value;
		unset($data[$i]);
	}

	return $data;
}
public function toAssociative($data) {
	foreach ($data as $i => $value) {
		$headerName = $this->headers[$i];
		$data[$headerName] = $value;
		unset($data[$i]);
	}

	return $data;
}
public function toAssociative ( $ data ) { foreach ( $ data as $ i => $ value ) { $ headerName = $ this -> headers [ $ i ] ; $ data [ $ headerName ] = $ value ; unset ( $ data [ $ i ] ) ; } return $ data ; }
Converts an indexed array of data into an associative array with field names.

@param array $data Indexed array of data representing row

@return array Associative array of data with field names
Converts an indexed array of data into an associative array with field names .