diff --git a/src/Parser.php b/src/Parser.php index 098773c..7f94413 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -229,4 +229,13 @@ public function _sanitize($string) { return preg_replace("/\xEF\xBB\xBF/", "", trim($string)); } + + /** + * Returns all the headers(columns) of the CSV. + * + * @return array + */ + public function getHeaders() { + return $this->headers; + } }