Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128482 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 2E9F01A00BC for ; Fri, 15 Aug 2025 21:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755292401; bh=h/6popVmRpDReXuS1UDuxTSIHQ8dUijbORGmgGfb8RU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=IKv8XwPmZxwtg50YDMmQ4w1QkNPIZH9Mnk+/ZP9hNQILPQP6ZSpx+Tr6O9J1Am0Ps lv5R8kdRca0rkxBGEBcnMLhDwtT+vOBv8yE3VfTadmlFAxu+ViRFb8KFpuRIfo5XCl n40yPXZRkhsBLh3OGYGBpwemUZlFDmrsR1wku/XGQmxQX1gtD3eOqWfeCTvh0AyLMk 4XFkiwVD+3CmYWZq37EtVQqaMnDH/0ENuBquMM5kHqftXvX9l3utUJHFszTtA+GXXf +Gcsb5KWmDOz5lP7yb2v76T0hzvgZAxRQL/p9O1y7OdZK+qijXIkpghozlTvhmqR5Z sl+q1YqfcojFQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 45488180079 for ; Fri, 15 Aug 2025 21:13:20 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 15 Aug 2025 21:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1755292493; bh=UmgdjT5hIuTd1ON/FK8hjHJ55g37EYRIfEkPw1Bd/4w=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=D2mzM3033Kxbknskx4rI4QCNhywVRFIisaeEMb9csyf+g+N2ZojhkQNlcU/ui/LL3 2at5E5PCBrvx/shQWJwwVX2yt/MrS1P6l5hXk4wvRnVNjrCosQCq7aaRJ5IDBglTFI Hx1WWT6d9bx9ntpeM4HseWo+m4wstZciQZ8dI9KcaiMIE5sqFGAv4ZkoxtL/BuaX5E h0pi6foJXDMs94EY0zI8nQzcsnTV0mXTPCkZs4gBYXMal3VbPIiP/W3ctqFlarv6KI bdMHoU7k1faOsZuxpgnfXd7qbVV6X6e+V1Onthq1JeEKtALu+8Mq908v6tXFbprr1r Wt2CFgjRosE3w== Message-ID: Date: Fri, 15 Aug 2025 23:14:52 +0200 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] Split as an alias to explode To: Vinicius Dias , PHP internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 8/15/25 17:53, Vinicius Dias wrote: > We have `join` as an alias for `implode` so I think it makes sense to > have `split` as an alias to `explode`, doesn't it? I'd rather have fewer aliases rather than more of them. Using `join()` instead of `implode()` is already somewhat obscure (and likewise is `sizeof()` instead of `count()`, which I don't think I've ever seen). I don't see value in having multiple names for the same thing, that will just cause confusion for folks that are used to the other name. > Since this is such a small change, I wouldn't expect it to require an > RFC, but if it does, I'd be happy to write it. As implied above and also indicated by the changed labels on the PR: RFC please. Best regards Tim Düsterhus