Skip to content

Commit 94c940a

Browse files
committed
docs: add Arrayizes
1 parent 067e8d5 commit 94c940a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

readme.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,3 +946,27 @@ isset($u['b']); // true
946946

947947
unset($u[1]);
948948
```
949+
950+
---
951+
### Arrayizes
952+
953+
You can use this trait to arrayize all complex data.
954+
955+
```php
956+
use Ahc\Underscore\Arrayizes;
957+
958+
class Any
959+
{
960+
use Arrayizes;
961+
962+
public function name()
963+
{
964+
$this->asArray($data);
965+
}
966+
}
967+
```
968+
969+
---
970+
#### License
971+
972+
> [MIT](./LICENSE) | © 2017-2018 | Jitendra Adhikari

0 commit comments

Comments
 (0)