42 $this->
loadString(file_get_contents($file_path));
51 $this->table_arr = array();
53 if(!isset($this->delimiter)){
56 while(($line = str_getcsv($str,
';')) !== FALSE){
57 if($numofcols === NULL){
58 $numofcols = count($line);
61 if(count($line) === $numofcols){
62 array_push($this->table_arr, $line);
66 $this->table_arr = array();
72 if($numofcols === NULL){
73 while(($line = str_getcsv($str,
',')) !== FALSE){
74 array_push($this->table_arr, $line);
78 while(($line = str_getcsv($str, $this->delimiter)) !== FALSE){
79 array_push($this->table_arr, $line);
setDelimiter($delimiter)
Set delimiter that should be used to parse CSV document.
loadString($str)
Load the string to be parsed.
isFileReady($file_path)
Check whether file exists, valid, and readable.
loadFile($file_path)
Load the CSV file to be parsed.