Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49654 invoked from network); 30 May 2016 03:35:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2016 03:35:44 -0000 Authentication-Results: pb1.pair.com header.from=colinodell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=colinodell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: colinodell@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:34887] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/41-36420-015BB475 for ; Sun, 29 May 2016 23:35:44 -0400 Received: by mail-oi0-f42.google.com with SMTP id w184so245383789oiw.2 for ; Sun, 29 May 2016 20:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5RsEcGG/Z8jwtD2ULK670JcdweBml2FkMiLNjoHz1bI=; b=mX81HN+/rW0fSaho9FRgTFrBVG99wRJWNg/oJyiv0w5sGgrlRnY7XkOKiAv2zMxp+W 5mYPkwWIVjzodKy6KbMD5P+Kzgk3/Ca0133cb8h6aQuQjxcCwKWSR/IlkllGCe0QlSL5 iWUI6PiLLi42TGBsEtE/d0PNLnUxfKfG/v006PIbhjcEWkv3ErDzwI54fkHR+oyjrOWT tN8SpIOp6ugjB7YolrUx362rQ75+h7WSmGG1LSbE7k+Jr4Vie90GhwDjVh2ZPpOcfKMx ZJlsucVrUNq1bRL8/QTTwrIL40Cu/GZWlValXqxzN+N31uvVcwNkoxDcOj6OyXsbjE7t nrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=5RsEcGG/Z8jwtD2ULK670JcdweBml2FkMiLNjoHz1bI=; b=Qtfy7GNBjfjOsSxrsDA57v+L99DdHPdepovRcpqGxbvQv9Sg6QL903HPC7JLPQkUVH /f0gsFR9jeqdCAzIy4OPfH9QNxRd366Pku4eiMei09TksMzxDB1z4JUxV2yyxyFEvold mpf195dvZ+eE8D0itNTbGZyypcSfKvEoruxWWblR2CBf0Ffp6swI0giZqqupOslR+idK o9Etoxg4zKjfXpae3IL/raQR3KyFnEqSiA1+tmzI+a7InwrK0IoXRSDS8dAzOPrFUaNz vro28fEyrtD1xWiljA7Qb7f5iiK+pp2ohXvO7Bwr4k+3Qv8dXr2e0KTd7Jtpxy+CrNMG mmnA== X-Gm-Message-State: ALyK8tJ8L22LaLi+a1333XqyTttYm8aE+n2jCXADvj/hEeHAZSuQEVpw4zzvQC5m7UxP4pbu0exsu1Oa2Yav3g== X-Received: by 10.157.1.140 with SMTP id e12mr17192511ote.180.1464579341408; Sun, 29 May 2016 20:35:41 -0700 (PDT) MIME-Version: 1.0 References: <2845716.HLhsui8PTI@mcmic-probook> In-Reply-To: <2845716.HLhsui8PTI@mcmic-probook> Date: Mon, 30 May 2016 03:35:31 +0000 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a114fd90c63dcf7053406f3f3 Subject: Re: [PHP-DEV] [RFC Discussion] array_change_keys() From: colinodell@gmail.com ("Colin O'Dell") --001a114fd90c63dcf7053406f3f3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > Yes there is: > array_combine( > array_map($someFunc, array_keys($arr), $arr), > $arr > ) > This way $someFunc gets key as first argument and value as second. (you > might use array_values($arr) instead of $arr but I=E2=80=99m not sure it= =E2=80=99s worth it) > Good call! I have updated the RFC to include this example as it best matches the behavior of the proposed function. Regards, Colin --001a114fd90c63dcf7053406f3f3--