$areas->toArray()
Converts all objects in the collection to an array. This can also take a callback function to further modify the array result.
$areas->toArray(Closure|null $map = null): array
Parameters
| Name | Type | Default |
|---|---|---|
| $map | Closureornull |
null
|
Return type
array
Parent class
Kirby\Panel\Areas
inherited from Kirby\Cms\Collection