We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1a30cf commit 636516dCopy full SHA for 636516d
1 file changed
src/CSV.php
@@ -19,6 +19,7 @@ class CSV {
19
private $headerOffset = 0;
20
private $header = [];
21
private $rowCount = 0;
22
+ private $headerCount = 0;
23
private $limit = [];
24
private $parsedData = [];
25
@@ -178,6 +179,15 @@ function rowCount() : int {
178
179
return count($this->parsedData);
180
}
181
182
+ /**
183
+ * Get parsed data header count
184
+ *
185
+ * @return integer
186
+ */
187
+ function headerCount() : int {
188
+ return count($this->header);
189
+ }
190
+
191
/**
192
* Set data limit
193
*
0 commit comments