Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14317 invoked from network); 12 Jan 2013 20:38:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2013 20:38:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=thruska@cubiclesoft.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=thruska@cubiclesoft.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cubiclesoft.com designates 74.208.44.107 as permitted sender) X-PHP-List-Original-Sender: thruska@cubiclesoft.com X-Host-Fingerprint: 74.208.44.107 u15404699.onlinehome-server.com Received: from [74.208.44.107] ([74.208.44.107:55202] helo=u15404699.onlinehome-server.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/42-24230-1D9C1F05 for ; Sat, 12 Jan 2013 15:38:42 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: thruska@cubiclesoft.com) with ESMTPSA id C572C50000AE Message-ID: <50F1C9B9.1080106@cubiclesoft.com> Date: Sat, 12 Jan 2013 13:38:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: PHP Development References: <50F19EA2.8040600@cubiclesoft.com> <50F07A56-A414-434F-804D-1E5B7039F728@gmail.com> <50F1BC83.30800@cubiclesoft.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] array_map() function modification From: thruska@cubiclesoft.com (Thomas Hruska) On 1/12/2013 1:10 PM, Peter Cowburn wrote: > On 12 January 2013 20:06, Galen Wright-Watson wrote: >> >> 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? > > I believe so, yes. That is currently how the following (an example > already given by Thomas) would work today: > > array_combine($keys, array_map(null, $vals0, $vals1, $vals2)); That was indeed the intent. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you might find useful. http://cubiclesoft.com/