Laravel/PHP renaming associative keys without knowing their names

     

Given following collection/array:


[   "somename" => "test.test.be"   "anothername" => "test"   "yetanothername" => "testing"   "extrafield" => "extra"   "extrafield" => "extra"
]  

When i retrieve this collection i always know the order of them