Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128499 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 930811A00BC for ; Mon, 18 Aug 2025 13:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755524112; bh=rDiuJcUNF/YvFCPHOwav8mjkvliptN3x4ZUJBzYQooY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=AFBYIXPW7A03jZwnUP30ryC7f8LoT2QaQ2DO3IJ/FyTu91yNjwnh0/U/jcC9xkfQ4 Qf4SKwQBCjyKJgNLHoyB32/GkFS78Z59WHTTCtrt1Okzw7DIKrGXkVApz2JLefJSbG 7nMSpQBa4Cj8thxGh9E23zXbC7rUau7aXi4rLb0tVn8CQYv19VrggwYnRq5aheKckO 6xB2U44ivw2OCk+lGW80qfqZOA9vDrV1ufNeKa4Aoo39C2LY06LEjDHyCTIKU7PdL7 OOyvttpqd7ubW1J9rJ+uwb5Vxcy8ktfPv6/2A31DxXN5Fo1Cl5HPQT1O6nz98M4qUk iMFHqtDaFKcbw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4A2F11801DD for ; Mon, 18 Aug 2025 13:35:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a3-smtp.messagingengine.com (fout-a3-smtp.messagingengine.com [103.168.172.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 18 Aug 2025 13:35:11 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id EE995EC0581 for ; Mon, 18 Aug 2025 09:36:45 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 18 Aug 2025 09:36:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1755524205; x=1755610605; bh=w5UdKr7/VTBBSfvdwfVNM2g1p58K0vLQOww+LbWsxUU=; b= P2HiY8g5bp7THQAH6OWI5gRNPTndo1HEFxu6WfDER4liwOPpEWMj6XXNzcCjWxff ToCpIczwgqekL3f0yanQbNIkCbLOCC42Fi1M5uCn+oIQeC43b4yjZ6JzJdokT6RF 7ooRZBwPaKdmhJwdOcTRgjsqiJruLZ+XQrnAc5ES8T77C/Q7bpAVxxDikHaQBuxj qMXb47IBxST5nFovuybfP3I5BBsIYdLsKiXZIA0Kxxdr0wCVzxUNgwX9r7gM9Q+v N/ozxdJ6qPiZofKSihE9KXiotoPGDSwC+9XDCMzAtkP4Mouj6m1qXxFnxohg3oCm ufp9Flf74uiuRd06b4pyZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1755524205; x=1755610605; bh=w 5UdKr7/VTBBSfvdwfVNM2g1p58K0vLQOww+LbWsxUU=; b=NfyS+pRlOepvc1CVf RxkJmzV3USVnTzjvGfv9ldO/dDTj20eFYwK0d51TtzRYLTqm+UHVfL3TPxFQq3fd JLBbRaQXJqgbHEAggW0J5LhKwfhP1zDI54U2/XhlvMfoypDE5QfXQnpOkpVWLBGp r5d7AHqnREphbnpGkfgflay/VgIXefsOgAxQhhwmWQHuCAchj4m7Do4fWgl4HEPD 01HEBgiY+jjK0xx99YQQL8vE7Jn4FEAOtiM0ByeannZIPNwiiXhLQlTV6p+gMfY9 rOb59l+bit6vIc9WE/PNpofo7zh0s6YGQV8njHI/KSg5BQIPt0tYUeljB/EblK6B zFoMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduhedvjeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertd dtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdfuceo ihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpeeltd etjeetvdehteffgefgleeviefgveehjeelleehgeegteekheejteeiheeuhfenucffohhm rghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghp thhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 18 Aug 2025 09:36:45 -0400 (EDT) Message-ID: Date: Mon, 18 Aug 2025 14:36:42 +0100 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Split as an alias to explode To: internals@lists.php.net References: <275514FF-2AF0-48D6-B57B-23B18ECCEED8@gmail.com> <8255DACE-3D37-4AFD-883D-93E22B6A54B3@gmail.com> Content-Language: en-GB In-Reply-To: <8255DACE-3D37-4AFD-883D-93E22B6A54B3@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 17/08/2025 18:15, Claude Pache wrote: > The difference of naming is probably the least problematic difference, > and attempting to reduce that specific difference without regard to > the other ones, won’t reduce confusion. As I said in my previous e-mail, I think this is a straw man argument. A developer coming to PHP from any combination of JavaScript, Perl, C#, Java, VisualBasic, Python, Ruby, Swift, Elixir, Dart, Rust, even Excel ... is going to look first for a function called "split" or some variation of that. If they have any common sense, they'll know they need to look up exactly what arguments it needs, and what options it provides. Unless for some reason they're familiar with the 1980s research language Modula-3, or some equally obscure language not listed on the Rosetta Code page I linked, they are never going to look for a function called "explode". If we don't want to add an alias, we should probably add a fake manual entry pointing people in the right direction, like we have for "delete": https://www.php.net/delete -- Rowan Tommins [IMSoP]