public function headers()
	{
		if (!$this->headers)
		{
			$this->rewind();

			$row = fgetcsv($this->file, self::ROW_LENGTH, $this->delimiter);

			$this->position++;

			// store headers for later
			if ($this->position == 1)
			{
				$this->headers = $row;
			}

			$this->rewind();
		}

		return $this->headers;
	}
public function headers()
	{
		if (!$this->headers)
		{
			$this->rewind();

			$row = fgetcsv($this->file, self::ROW_LENGTH, $this->delimiter);

			$this->position++;

			// store headers for later
			if ($this->position == 1)
			{
				$this->headers = $row;
			}

			$this->rewind();
		}

		return $this->headers;
	}
public function headers ( ) { if ( ! $ this -> headers ) { $ this -> rewind ( ) ; $ row = fgetcsv ( $ this -> file , self :: ROW_LENGTH , $ this -> delimiter ) ; $ this -> position ++ ; // store headers for later if ( $ this -> position == 1 ) { $ this -> headers = $ row ; } $ this -> rewind ( ) ; } return $ this -> headers ; }
Get the first row of headers

@return  object  Row as a stdClass
Get the first row of headers