From 0323d5108b33c6d80e1c22d092606d96e3bd3627 Mon Sep 17 00:00:00 2001 From: William Knauss Date: Thu, 6 Feb 2014 18:31:34 -0500 Subject: [PATCH] parse_file documentation --- parsecsv.lib.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 5399beb..a33c59d 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -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 ; }