This function is also very handy if you want to use things like array_map on collections. Oh how I wait for the day when all array funcs support traversables...