The toArray() method converts the collection to a plain array.
Description
public AbstractCollection::toArray(): array
Parameters
None
Return Value
Returns an array containing all the elements from the collection.
Exceptions
None
The toArray() method converts the collection to a plain array.
public AbstractCollection::toArray(): array
None
Returns an array containing all the elements from the collection.
None