Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64906 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5743 invoked from network); 12 Jan 2013 20:11:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2013 20:11:23 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.175 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:36140] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/60-24230-A63C1F05 for ; Sat, 12 Jan 2013 15:11:23 -0500 Received: by mail-ob0-f175.google.com with SMTP id vb8so2839948obc.34 for ; Sat, 12 Jan 2013 12:11:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=DkYqmhPrDlpjplq3fD1RD+0ebpN6afvmwzWE6pYCcr0=; b=X13++ZIYT6IgkcfTqgF7uSiTVhVT05qyDVph1XtggMm3wCYCsLAi3pRyaRBrByZHA0 gDiVQfrWbmhISfGG7e5ugLDuwpLFknGKxcLeI64roVg+KLGYFYwQzrk8PjIS1EOBuFUD 9nk6JhmxxOx350709LoPrjgl9NOJ/oDqPYlhPBLIiDIr+M4Dr6GqWlbRh434Cqe9aW+7 C/sLtHjdZSLwdFFxZ26zZs2qf4qmutvC6R/u7W9VgbIoLi7YmPsqpK0xlLNlKGisjuSK 0nSmuJHREH1qnZkB6bIg80JJG2NAdJKS67BVDJUSJsexUV7a5jAhVVj7kmYL3fpmH4OE tMrg== Received: by 10.182.95.133 with SMTP id dk5mr59395866obb.14.1358021479901; Sat, 12 Jan 2013 12:11:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.167.162 with HTTP; Sat, 12 Jan 2013 12:10:39 -0800 (PST) In-Reply-To: References: <50F19EA2.8040600@cubiclesoft.com> <50F07A56-A414-434F-804D-1E5B7039F728@gmail.com> <50F1BC83.30800@cubiclesoft.com> Date: Sat, 12 Jan 2013 20:10:39 +0000 Message-ID: To: Galen Wright-Watson Cc: Thomas Hruska , PHP Development Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] array_map() function modification From: petercowburn@gmail.com (Peter Cowburn) 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));