On Sat, Jan 12, 2013 at 11:41 AM, Thomas Hruska <thru...@cubiclesoft.com>wrote:
> [...] > > The array_map() changes would allow for multiple arrays of values: > > array_map($keys, $vals, $vals2, $vals3); > [...] > > But it would execute faster if it were supported in array_map(). If it is > supported in array_map(), then array_combine() could call array_map() and > could potentially just be an alias to array_map(). > > Alternatively, array_combine() could be made variadic, adding your proposed behavior (which is more in line with the current behavior of array_combine() than array_map()). Speaking of, On Sat, Jan 12, 2013 at 9:34 AM, Thomas Hruska <thru...@cubiclesoft.com> wrote: > [...] > > In addition, passing multiple value arrays would do something naturally in > line with the rest of how array_map() works now but with keys sourced from > the keys array. > Just to be clear, do you mean the result would be: array($keys[0] => array($vals0[0], $vals1[0], ...), $keys[1] => array($vals0[1], $vals1[1], ...), ...) so the i-th item in the result would be an array with the i-th items of each value array, and the i-th item of the key array as the key?