Understand the TabularDataReader interface
masterThe League\Csv\TabularDataReader interface (introduced in version 9.6) provides a common API for handling tabular data structures, such as CSV documents, HTML tables, or RDBMS tables.
A tabular data structure consists of:
- A collection of similar, non-nested PHP
arrayrecords. - An optional header containing unique
stringvalues.
TabularDataReader implementations (like Reader) are generally immutable; methods like filter(), select(), and slice() return a new instance, leaving the original data unchanged.