PHP instance method
Tobject->rows
Description
Return an array of stdClass objects holding properties of valid rows according to the table format for the CSV or Excel file.
Examples
[%foreach ($file->rows() as $row) {
debug($row->salary);
} %]
[%// Give me the first ten rows for a quick check.
foreach ($file->rows(count: 10) as $row) {
debug($row->salary);
} %]
[%// Use an alternative format.
foreach ($file->rows(format: "id:some_system_id") as $row) {
debug($row->salary);
} %]
|
Parameters3
Coding name |
start
|
Description |
The first row to return, counting starts at 0.
|
Position |
1
|
Type |
Integer(Primitive type)
|
Coding name |
count
|
Description |
How many rows.
|
Position |
2
|
Type |
Integer(Primitive type)
|
Default value |
All rows.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.