diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 57eba4c..fe7d5ee 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -173,7 +173,7 @@ class parseCSV { * @param input CSV file or string * @return nothing */ - function parseCSV ($input = null, $offset = null, $limit = null, $conditions = null) { + public function __construct ($input = null, $offset = null, $limit = null, $conditions = null) { if ($offset!==null) { $this->offset = $offset; }