$collection->toArray($callback = null)

Converts the current object into an array

  • $callback (callable)
    Mapping callback
  • return (array)