$collection->toArray()
Converts the object into an array
$collection->toArray(Closure $map = null): arrayParameters
| Name | Type | Default | 
|---|---|---|
| $map | Closure | null | 
Return type
array
Converts the object into an array
$collection->toArray(Closure $map = null): array| Name | Type | Default | 
|---|---|---|
| $map | Closure | null | 
array