Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109010 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72335 invoked from network); 14 Mar 2020 16:21:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Mar 2020 16:21:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EE27D1804DD for ; Sat, 14 Mar 2020 07:43:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 14 Mar 2020 07:43:21 -0700 (PDT) Received: by mail-ot1-f42.google.com with SMTP id g15so13256713otr.0 for ; Sat, 14 Mar 2020 07:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=s0FhW5zWm1V64+1mnAOV8v6y3toU/4uV1eMmz328ocw=; b=jyYtjqrIHcSQxBpyHDzf6decItG1e8I9XzIDuoNvxEkMYOp0Qv/0NLiO9ullW5CTrt xV/GPrjHi4BmU5jgE7cRBg4QwFrwwZDQ+D6CzQZKQ6F9x3G+ZPisKDLtRatc4omg6jy6 v62VlG+rBq0Sn2YF5GhqVizms83ZV3ppao65lAcwQGeFKqb3C6Y/cWzcGoy9xhPWmAgJ AhT/sQtmu9GZt9G7ME6hGrD5xN2WaqimdbmFeNmvAnbhBkn9aEVp7ZI1vHSuIiobjJ7/ HEGGjn9gRWz+MfxP419nmo14MfNHgolw7/EKriuFiV34kPwQdGjMAb5UJN78I9FVhZ8H BfXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=s0FhW5zWm1V64+1mnAOV8v6y3toU/4uV1eMmz328ocw=; b=s5rHlEOS9Gml0RpGBNQnHYqE7dkfE7W3wEE8eCEeMs10BFSTk9K9izq0y05FhoVViA V3Sfxa8+RqY9X3QFSDb6T0pgJozDlBzXBwcqUKQ6dTU9E0ky3y2nkpVK/rW0D9/w2UXV h4jkgu57Y4NXNCtQy7Et+QymHt2fFNF8sh+dGJ3q6pILT8gavPB5VjZbzIPwfio8VHM7 iQrylMH7bAkiDJeziCoCZpbfKRhez6O5Tqkm/jX4CDXnc3YDwuBcrIgy+VSdBShPkWWz tpKtS/Lpi9MVmtv4h3YBcEBYVMLJBBq+RyoQ+CT4gXgoXDiwOYSa0F9QLmdC2b+kql9Z qYfQ== X-Gm-Message-State: ANhLgQ08Ln4Axj3eNFxHb1zBRGluiRR9bYnew41MyJjgDpduF5P/Hlu2 oKPKVotLQ7D4Bx8d4JW0RbtRgl+mpbQZe8fFt+kcR814 X-Google-Smtp-Source: ADFU+vsIlgoyDI+WfcvQNVkZ6c7VTvx5TyC86nFu99A+zwqzPVl1o569r4J81unC+JLq0bCY+ihuIBTqfiNaTNCbwcM= X-Received: by 2002:a9d:7d8d:: with SMTP id j13mr14904319otn.166.1584196997347; Sat, 14 Mar 2020 07:43:17 -0700 (PDT) MIME-Version: 1.0 Date: Sat, 14 Mar 2020 15:43:06 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="00000000000047fcf705a0d19b62" Subject: Associated Arrays as function parameters From: mtkocak@gmail.com (=?UTF-8?Q?Midori_Ko=C3=A7ak?=) --00000000000047fcf705a0d19b62 Content-Type: text/plain; charset="UTF-8" Dear Internals, I would like to as you a question. I know that it is possible to use an array to function parameters like: function(...array); But this method is not working when the array is associative. Would not be fine if an array like ['param1'=>'value', 'param2' => 'value'] would be used in a function like function(param1, param2) regardless of the order? I think it would make our lives is easier. I'd be also happy if you know if there is more effective method to achieve the same result. Thanks, Midori --00000000000047fcf705a0d19b62--