\Kaloa\FilesystemCsvReader

Summary

Methods
Properties
Constants
__construct()
fetchAll()
fetchAllAssoc()
fetch()
fetchAssoc()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(resource  $stream, string  $encoding = 'UTF-8', string  $delimiter = ',', string  $enclosure = '"', string  $escape = '\\') 

Parameters

resource $stream
string $encoding
string $delimiter
string $enclosure
string $escape

Throws

\Exception

fetchAll()

fetchAll() : array

Returns

array

fetchAllAssoc()

fetchAllAssoc(array  $keys = array()) : array

Parameters

array $keys

If not empty, use as array keys. Otherwise read keys from first line of input data

Throws

\Exception

Returns

array

fetch()

fetch() : array|boolean

Returns

array|boolean

fetchAssoc()

fetchAssoc(array  $keys = array()) : array|boolean

Parameters

array $keys

Throws

\Exception

Returns

array|boolean