You are here

protected function CsvParser::readLine in Feeds 8.3

Returns a new line from the CSV file.

@todo Add encoding conversion.

Return value

string|bool Returns the next line in the file, or false if the end has been reached.

4 calls to CsvParser::readLine()
CsvParser::getHeader in src/Component/CsvParser.php
Returns the header row.
CsvParser::next in src/Component/CsvParser.php
Implements \Iterator::next().
CsvParser::parseLine in src/Component/CsvParser.php
Parses a single CSV line.
CsvParser::rewind in src/Component/CsvParser.php
Implements \Iterator::rewind().

File

src/Component/CsvParser.php, line 268

Class

CsvParser
Parses an RFC 4180 style CSV file.

Namespace

Drupal\feeds\Component

Code

protected function readLine() {
  return fgets($this->handle);
}