Skip to content

Commit

Permalink
Edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
kohkimakimoto committed Aug 2, 2014
1 parent 51f8fad commit bc924bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -10,6 +10,7 @@ EArray is a small PHP class to provide convenient ways to access a PHP array.
* You can use a default value when you try to get a value of array.
* You can use this object as a normal array (Implementing `ArrayAccess`, `Iterator` and `Countable` interfase).
* It has some convenient methods for array: `each`, `filter`, `sort`.
* You can register custom methods to array.

It aims to remove code that checks array key existence. Especially for a nested array.
Do you hate the code like the below?
Expand Down Expand Up @@ -61,7 +62,7 @@ $ php composer.phar install
* [each](#each)
* [filter](#filter)
* [sort](#sort)
* [Registering a method](#registering-a-method)
* [Registering a custom method](#registering-a-method)

### Basic operations

Expand Down Expand Up @@ -214,7 +215,9 @@ $earray->sortByValue(function($one, $another){
// array("a" => array(...), "b" => array(...), "c" => array(...), "d" => array(...), ...)
```

#### Registering a method
### Registering a custom method

You can register custom methods to array.

```php
$earray = new EArray(
Expand Down

0 comments on commit bc924bc

Please sign in to comment.