Turns a collection into its array representation. Care should be taken when using this method when the collection has potential
duplicate keys. In case keys are preserved, the last of the duplicate keys
will be retained and the previous keys will be lost.
Turns a collection into its array representation. Care should be taken when using this method when the collection has potential
duplicate keys. In case keys are preserved, the last of the duplicate keys
will be retained and the previous keys will be lost.
Parameters
$preserveKeys
Whether keys will be preserved during conversion.
Set this to false to prevent data loss when dealing
with duplicate keys.