Skip to content

Commit

Permalink
Bump version to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 10, 2014
1 parent 0f5361e commit 1c37432
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ $data = $reader->fetchAll(function ($value) {

This method returns a sequentials array of all CSV rows. the rows are associative arrays where the key are given to the method using a array.

**Of Note:**
* If the number of values in a CSV row is lesser than the number of named keys, the method will add `null` values to compensate for the missing values.
* If the number of values in a CSV row is greater that the number of named keys the exceeding values will be drop from the result set.

```php
$data = $reader->fetchAssoc(['firstname', 'lastname', 'email']);
// will return something like this :
Expand Down Expand Up @@ -173,6 +177,8 @@ $data = $reader->fetchAssoc(['firstname', 'lastname', 'email'], function ($value
//
```



#### `Reader::fetchCol`

This method returns an sequentials array for a given CSV column.
Expand Down
2 changes: 1 addition & 1 deletion src/Bakame/Csv/Codec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2013 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/Bakame.csv
* @license http://opensource.org/licenses/MIT
* @version 3.0.0
* @version 3.0.1
* @package Bakame.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Bakame/Csv/CsvControlsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2013 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/Bakame.csv
* @license http://opensource.org/licenses/MIT
* @version 3.0.0
* @version 3.0.1
* @package Bakame.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Bakame/Csv/ReaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2013 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/Bakame.csv
* @license http://opensource.org/licenses/MIT
* @version 3.0.0
* @version 3.0.1
* @package Bakame.csv
*
* MIT LICENSE
Expand Down

0 comments on commit 1c37432

Please sign in to comment.