src/FS/File/CSV/IteratorReader.php
public function toArray( $useHeaders = false )
	{
		$list	= array();
		if( $useHeaders )
		{
			$headers	= $this->iterator->next();
			while( $data = $this->iterator->next() )
			{
				$list[]	= array_combine( $headers, $data );
			}
		}
		else
		{
			while( $list[] = $this->iterator->next() );
		}
		return $list;
	}
public function toArray( $useHeaders = false )
	{
		$list	= array();
		if( $useHeaders )
		{
			$headers	= $this->iterator->next();
			while( $data = $this->iterator->next() )
			{
				$list[]	= array_combine( $headers, $data );
			}
		}
		else
		{
			while( $list[] = $this->iterator->next() );
		}
		return $list;
	}
public function toArray ( $ useHeaders = false ) { $ list = array ( ) ; if ( $ useHeaders ) { $ headers = $ this -> iterator -> next ( ) ; while ( $ data = $ this -> iterator -> next ( ) ) { $ list [ ] = array_combine ( $ headers , $ data ) ; } } else { while ( $ list [ ] = $ this -> iterator -> next ( ) ) ; } return $ list ; }
Returns CSV Data as Array or associative Array.
@access		public
@param		bool		$useHeaders		Flag: use first Line as Headers and return associative Array
@return		array
Returns CSV Data as Array or associative Array .