mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
parse_file documentation
This commit is contained in:
@@ -440,9 +440,12 @@ class parseCSV {
|
||||
// ==============================================
|
||||
|
||||
/**
|
||||
* Parse File
|
||||
* Read file to string and call parse_string()
|
||||
* @param file local CSV file
|
||||
* @return 2D array with CSV data, or false on failure
|
||||
*
|
||||
* @access public
|
||||
* @param [string] $file Local CSV file
|
||||
* @return [array|bool]
|
||||
*/
|
||||
public function parse_file ($file = null) {
|
||||
if ( $file === null ) {
|
||||
@@ -452,7 +455,7 @@ class parseCSV {
|
||||
if ( empty($this->file_data) ) {
|
||||
$this->load_data($file);
|
||||
}
|
||||
|
||||
|
||||
return ( !empty($this->file_data) ) ? $this->parse_string() : false ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user