On 12.01.2013, at 21:34, Thomas Hruska <thru...@cubiclesoft.com> wrote:

> This would allow developers to do things like:
> 
> $keys = array('key1', 'key2', ..., 'keyn');
> $vals = array('val1', 'val2', ..., 'valn');
> 
> $somemap = array_map($keys, $vals);
> 
> Which would result in $somemap containing:
> 
> array('key1' => 'val1', 'key2' => 'val2', ..., 'keyn' => 'valn')

There is a function for this:

http://docs.php.net/array_combine

-- 
Alexey Zakhlestin
https://github.com/indeyets






-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to