Skip to content

Commit

Permalink
fix bug array_reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasiliy-Makogon committed Dec 18, 2023
1 parent b9bd809 commit e2e4107
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,25 @@ var_dump($value);
```
string(3) "1,2"
```


Пример:
```php
var_dump($data->get('langs.backend')->getDataAsArray());
var_dump($data->get('langs.backend')->reverse()->getDataAsArray());
```
Результат:
```
array(2) {
[0]=>
string(3) "PHP"
[1]=>
string(5) "MySql"
}
array(2) {
[0]=>
string(5) "MySql"
[1]=>
string(3) "PHP"
}
```

0 comments on commit e2e4107

Please sign in to comment.