Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128502 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 5A2F41A00BC for ; Mon, 18 Aug 2025 14:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755526486; bh=LIZqvFvNGjDKOZrEuFuTp+4YdU0Q4CDjZUWpksp6740=; h=From:Subject:Date:References:To:In-Reply-To:From; b=Tr5hvg+esHRzrQcG/CPJWvHlrlmNQ+1bf6Z0CTYDdUnKVpJl38gJGkKmx0nWxthxt yRDmpR0NzGOknHZja5jWQ2Vo3tG0J4QfT4v5wYaQoZW9B/krf59mqTczoshPlJlmD1 agRCrIT9MxwuQl2MIHEMXN2VljZQB3v+L0HxdHAM5KZfxcAiuk0qAz8E5AlkwnzGWe JaJtzw6FvsY8yg8hgcRhLtWEFUh6JT8MnlIO69TymXoupa/Sk0NIKtVrQ6LySn8/RB wDHGQvND0QQqsaIEHNpYCihwp3mpN79kyhZzzSov0Sg8swdM985BHq5zHr0Q78kjAX YjcB56Ug4CnvA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D8B8318005C for ; Mon, 18 Aug 2025 14:14:44 +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=0.6 required=5.0 tests=BAYES_50,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 mail.gna.ch (darkcity.gna.ch [84.234.28.114]) (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 14:14:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.gna.ch (Postfix) with ESMTP id EE413238182D for ; Mon, 18 Aug 2025 16:16:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1755526577; bh=LIZqvFvNGjDKOZrEuFuTp+4YdU0Q4CDjZUWpksp6740=; h=From:Subject:Date:References:To:In-Reply-To; b=pGtR99uswaSvpKVIovBsXMtSCCFL4Fp7RUrXJMv1X1axksPhw/YbNrq+H1Q2tZAiT QeeF59asDy4je9zwHuXt0PLuchH8/ZdfsoRJeaxHXy665kYht9qrW6GdwXJigP3hCs L9phPiTZevjoNVx/207/xyRigDb/jIFoKe+zsIlw= X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (mail.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QC2fS8HwE7UA for ; Mon, 18 Aug 2025 16:16:17 +0200 (CEST) Received: from smtpclient.apple (unknown [194.169.219.181]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.gna.ch (Postfix) with ESMTPSA id 234872381206 for ; Mon, 18 Aug 2025 16:16:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1755526577; bh=LIZqvFvNGjDKOZrEuFuTp+4YdU0Q4CDjZUWpksp6740=; h=From:Subject:Date:References:To:In-Reply-To; b=pGtR99uswaSvpKVIovBsXMtSCCFL4Fp7RUrXJMv1X1axksPhw/YbNrq+H1Q2tZAiT QeeF59asDy4je9zwHuXt0PLuchH8/ZdfsoRJeaxHXy665kYht9qrW6GdwXJigP3hCs L9phPiTZevjoNVx/207/xyRigDb/jIFoKe+zsIlw= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: [PHP-DEV] Split as an alias to explode Date: Mon, 18 Aug 2025 16:16:16 +0200 References: <275514FF-2AF0-48D6-B57B-23B18ECCEED8@gmail.com> <8255DACE-3D37-4AFD-883D-93E22B6A54B3@gmail.com> To: internals@lists.php.net In-Reply-To: Message-ID: <8B7D7F24-C49B-450D-A29B-3AB91E5EEEF9@cschneid.com> X-Mailer: Apple Mail (2.3826.700.81) From: cschneid@cschneid.com (Christian Schneider) Am 18.08.2025 um 15:36 schrieb Rowan Tommins [IMSoP] = : > 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. I don't think people nowadays search through documentation for a = specific function name. I am pretty confident that people will either Google/DDG/... or ask an = AI chat something like "How do I split a string in PHP?" which gives a = complete code example including parameter order. > 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 This would IMHO be better suited for a tutorial / learning website, I am = not convinced that we need to extend the reference documentation (or = even the language) with entries of synonyms/aliases people might be = looking for. So, in short, that's a -1 for a split alias from me. Regards, - Chris