mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
parse_file
This commit is contained in:
@@ -629,15 +629,15 @@ class parseCSV {
|
|||||||
* @return [array|bool]
|
* @return [array|bool]
|
||||||
*/
|
*/
|
||||||
public function parse_file ($file = null) {
|
public function parse_file ($file = null) {
|
||||||
if ( $file === null ) {
|
if (is_null($file)) {
|
||||||
$file = $this->file;
|
$file = $this->file;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty($this->file_data) ) {
|
if (empty($this->file_data)) {
|
||||||
$this->load_data($file);
|
$this->load_data($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ( !empty($this->file_data) ) ? $this->parse_string() : false ;
|
return (!empty($this->file_data)) ? $this->parse_string() : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user