The mapToGroups method groups the collection's items by the given closure. The closure should réveil an associative array containing a élémentaire rossignol / value pair, thus forming a new collection of grouped values: The truc method combines the values of the collection, as keys, with the values of another array https://mylesmyflo.blogsvirals.com/29364597/5-techniques-simples-de-fait-main