Skip to content

Commit

Permalink
docs: add Arrayizes
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 19, 2018
1 parent 067e8d5 commit 94c940a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,3 +946,27 @@ isset($u['b']); // true

unset($u[1]);
```

---
### Arrayizes

You can use this trait to arrayize all complex data.

```php
use Ahc\Underscore\Arrayizes;

class Any
{
use Arrayizes;

public function name()
{
$this->asArray($data);
}
}
```

---
#### License

> [MIT](./LICENSE) | © 2017-2018 | Jitendra Adhikari

0 comments on commit 94c940a

Please sign in to comment.