public function current() {
		if ($this->string === null) {
			$this->string = fgets($this->file);
		}
		
		$string = rtrim($this->string, "\n\r");
		
		if ($this->delimiter === null) {
			return $string;
		} 
		
		$dataRaw = explode($this->delimiter, $string);
		$data    = [];

		if ($this->partsNames === null) {
			foreach ($dataRaw as $key => $part) {
				$data[self::UNNAMED_PREFIX . $key] = $part;
			}
			
			return $data;
		}
		
		foreach ($dataRaw as $key => $part) {
			if (isset($this->partsNames[$key])) {
				$data[$this->partsNames[$key]] = $part;
				continue;
			}
			
			$data[self::UNNAMED_PREFIX . $key] = $part;
		}

		return $data;
	}
public function current() {
		if ($this->string === null) {
			$this->string = fgets($this->file);
		}
		
		$string = rtrim($this->string, "\n\r");
		
		if ($this->delimiter === null) {
			return $string;
		} 
		
		$dataRaw = explode($this->delimiter, $string);
		$data    = [];

		if ($this->partsNames === null) {
			foreach ($dataRaw as $key => $part) {
				$data[self::UNNAMED_PREFIX . $key] = $part;
			}
			
			return $data;
		}
		
		foreach ($dataRaw as $key => $part) {
			if (isset($this->partsNames[$key])) {
				$data[$this->partsNames[$key]] = $part;
				continue;
			}
			
			$data[self::UNNAMED_PREFIX . $key] = $part;
		}

		return $data;
	}
public function current ( ) { if ( $ this -> string === null ) { $ this -> string = fgets ( $ this -> file ) ; } $ string = rtrim ( $ this -> string , "\n\r" ) ; if ( $ this -> delimiter === null ) { return $ string ; } $ dataRaw = explode ( $ this -> delimiter , $ string ) ; $ data = [ ] ; if ( $ this -> partsNames === null ) { foreach ( $ dataRaw as $ key => $ part ) { $ data [ self :: UNNAMED_PREFIX . $ key ] = $ part ; } return $ data ; } foreach ( $ dataRaw as $ key => $ part ) { if ( isset ( $ this -> partsNames [ $ key ] ) ) { $ data [ $ this -> partsNames [ $ key ] ] = $ part ; continue ; } $ data [ self :: UNNAMED_PREFIX . $ key ] = $ part ; } return $ data ; }
Get the current position's item

@return string | array
Get the current position s item