src/FS/File/CSV/Iterator.php
public function next()
	{
		if( is_resource( $this->filePointer ) )
		{
			if( !feof( $this->filePointer ) )
			{
				$data = fgetcsv(
					$this->filePointer,
					self::$maxRowSize,
					$this->delimiter,
					$this->enclosure
				);
				//A blank line in a CSV file will be returned as an array comprising a single null field, and will not be treated as an error. 
				if( count( $data ) == 1 && ( !isset( $data[0] ) || trim( $data[0] ) == '') ) 
					return $this->next();				
				if( $data )
				{
					$this->currentElement	= $data;	
					$this->rowCounter++;
					return TRUE;
				}
			}
		}
		return FALSE;
	}
public function next()
	{
		if( is_resource( $this->filePointer ) )
		{
			if( !feof( $this->filePointer ) )
			{
				$data = fgetcsv(
					$this->filePointer,
					self::$maxRowSize,
					$this->delimiter,
					$this->enclosure
				);
				//A blank line in a CSV file will be returned as an array comprising a single null field, and will not be treated as an error. 
				if( count( $data ) == 1 && ( !isset( $data[0] ) || trim( $data[0] ) == '') ) 
					return $this->next();				
				if( $data )
				{
					$this->currentElement	= $data;	
					$this->rowCounter++;
					return TRUE;
				}
			}
		}
		return FALSE;
	}
public function next ( ) { if ( is_resource ( $ this -> filePointer ) ) { if ( ! feof ( $ this -> filePointer ) ) { $ data = fgetcsv ( $ this -> filePointer , self :: $ maxRowSize , $ this -> delimiter , $ this -> enclosure ) ; //A blank line in a CSV file will be returned as an array comprising a single null field, and will not be treated as an error.  if ( count ( $ data ) == 1 && ( ! isset ( $ data [ 0 ] ) || trim ( $ data [ 0 ] ) == '' ) ) return $ this -> next ( ) ; if ( $ data ) { $ this -> currentElement = $ data ; $ this -> rowCounter ++ ; return TRUE ; } } } return FALSE ; }
Indicates whether the end of file is not reached.
@access		public
@return		boolean		FALSE on EOF reached, TRUE otherwise
Indicates whether the end of file is not reached .