Skip to content

Commit 0094817

Browse files
committed
add Arr::divide method to docs
1 parent f93a0a2 commit 0094817

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

v5/utilities.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ Quick Links Columns: 3
77

88
## Array
99

10+
### Arr::divide
11+
12+
The `Arr::divide()` method splits keys and values from the given array into divided parts:
13+
14+
```php
15+
use \TypeRocket\Utility\Arr;
16+
17+
$array = ['one' => 1, 'two' => 2];
18+
19+
Arr::divide($array);
20+
// [ ['one', 'two'],[1,2] ]
21+
```
22+
1023
### Arr::filterNull
1124

1225
The `Arr::filterNull()` method removes all `null` values from the given array:

0 commit comments

Comments
 (0)