Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128526 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 CB3F81A00BC for ; Fri, 22 Aug 2025 11:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755863353; bh=6Kxv7cQZPuByvZua3idBg2/pimNjKs72oBE8n8DHj18=; h=References:In-Reply-To:From:Date:Subject:Cc:From; b=kAZxTGZhJ5HH6wy57gxJkSnUnQTqzHUoGG1aiPSVUGL8PqW7kwJw60pzWzwPripHa SLR+Ebp81SvxEuEHCX0309veZ2sZzPBrkQgg7JQJYsxvIltQPIIgoixmk+Z6+/pynV tV9wc0Ytu+TdgGDgjLvrDfQRxskgHLOGrZYKywI0cHqPjTkC6sfRpL8ViL+ks3D7pD eBULY/R4ybdE7gntH2/r+idlRMtf59zoe0aloDbcYg2BWeIKvlmTwQQlLZOypKR1lH OONBXhisa+Vm2p6yAyCwqeHenYwFnLFMZcGRwLMsvHKQbBcQjGZGb388cLFSSyzxnf eLiobB/i+v7vg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9C40318004D for ; Fri, 22 Aug 2025 11:49:12 +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=4.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,MALFORMED_FREEMAIL,MISSING_HEADERS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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, 22 Aug 2025 11:49:12 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3b9d41baedeso1066740f8f.0 for ; Fri, 22 Aug 2025 04:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755863445; x=1756468245; darn=lists.php.net; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=6Kxv7cQZPuByvZua3idBg2/pimNjKs72oBE8n8DHj18=; b=TngZAZ4cROKuSCF8RKMzRX0WkGaDC3IYJZ9AtkR5o6gcr/x+rbvWbiSjLN3e+9qf2V 7zEaqYIeHzTeCkxnzSmjJDKtozqzSFnxCwNUjXVeKM7anuJqQZGZQU+4Ch8zPcWdpI2o Ea5JOEBDmZ1efqinSlOB4L1TlaT9EL0VTn8WEm7f7pDh7GiUmY5LQ0P90149/JVw2eTf P/ZQ0yRn8PqY0UC42/CEb4ay8KkmSYDzjE0y8BKhgFPk9KM6em0OD/AX9Gc7rvZeNOQW oxHVVzWwdn/qKq951TS91A/1DSg+gxkj5PukMJ2J1Ax60RdXpoKKvmBvv0G/Zuzf6jN4 LwYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755863445; x=1756468245; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6Kxv7cQZPuByvZua3idBg2/pimNjKs72oBE8n8DHj18=; b=ax/uSAAggbbU5txkATrafSUoiJgL01ViiPyWXau5rb7Hz3zYourV1AtDl/2loE7nCP DyBQHeL5e5Sl1Y14gKCjtvAhuYjnIkrKuc6Xl//0ya9OL2pWjQOmHzXaw0KugfXuc27i q2sv8aawVCLBsIXLoNT2s1G1FnyApRWVLLfCe+eoVnyewBr4ERk4ff1oxwEfdkOvf7I3 ulITmIzBuweS88OlnogSU/vU+OJu95Nrx/doZeopZhPY7YjYsFheKG/Y9zW95S5yLJ/w YRCsuKJK+XwfABjIDBpVSV/z7wOWMU8u4AdBtntyQW9dtOn+csT+hjgI78cJ4EqKY6Ri XKVw== X-Gm-Message-State: AOJu0YyiUAWH2wTxqimRiL8C5tsNfqFY4+qW8uN3M9yggQRMqzirbRiD G8NHtNBJk1R3grD6qExye/72tsgYHWR7h8emQ86MQhBrmlC6MEhURsPILMhI8ZOv+YX8fV2atBk Ve+SbocT90lS1jzg8/eKHQrNK+k5LR4rmXePJSgc= X-Gm-Gg: ASbGncsFTc/ZLD13ETP/ANEm4HDDgffoFKV8/T1aXzqSaC26323jgcF94YVU+q0Vz1l UIhkq5C3fL78STHT2bc9xqhjgyuP1K37dLQK7z6DtQWDnLip0jXAbmIS7ONMqDBSe7rLPyrGKXy XT8OIks0h6xZaPPidDwLebqjprqQxQEhBP1hKieaiEe8eEQ28bssaG/L+pBMYzOB7tTowwMTLj5 qyZzg== X-Google-Smtp-Source: AGHT+IE9wTD9Du9sNn2I8nHEbHT2NCQAFQsrLWBFWZE+YP1vTixxULIQsbtU/ihW/hkYL/Gxz8z8buss3/tcHZeUkKM= X-Received: by 2002:a05:6000:4312:b0:3b8:d955:c598 with SMTP id ffacd0b85a97d-3c5dc73508bmr1719239f8f.30.1755863444562; Fri, 22 Aug 2025 04:50:44 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <275514FF-2AF0-48D6-B57B-23B18ECCEED8@gmail.com> <8255DACE-3D37-4AFD-883D-93E22B6A54B3@gmail.com> <8B7D7F24-C49B-450D-A29B-3AB91E5EEEF9@cschneid.com> In-Reply-To: <8B7D7F24-C49B-450D-A29B-3AB91E5EEEF9@cschneid.com> Date: Fri, 22 Aug 2025 14:50:27 +0300 X-Gm-Features: Ac12FXwlbkFfWPFIjZVb6XD82GSawv32z6Vi3uRk2j3D5x7tX2x5t3O4NFfH6Cw Message-ID: Subject: Re: [PHP-DEV] Split as an alias to explode Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000e329a0063cf2d05a" From: raveren@gmail.com (=?UTF-8?Q?Rokas_=C5=A0leinius?=) --000000000000e329a0063cf2d05a Content-Type: text/plain; charset="UTF-8" On Mon, 18 Aug 2025 at 17:18, Christian Schneider wrote: > 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 > Personally, after 15+ years with PHP, I never know which one I need: implode or explode, neither name makes intuitive sense to me and I do an in-ide doc lookup to see if I got the right one every time. Making a programming language intuitive and self-explanatory in ENGLISH (i.e. not in javascript, not in php), makes it more efficient - and more loved. I think this alias is definitely a worthwhile addition. --000000000000e329a0063cf2d05a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

<= /div>
On Mon, 18 Aug 2025 at 17:18, Christian Schneider <cschneid@cschneid.com> wrote:
Am 18.08.2025 um = 15:36 schrieb Rowan Tommins [IMSoP] <imsop.php@rwec.co.uk>:
> 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 va= riation 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 specif= ic function name.
I am pretty confident that people will either Google/DDG/... or ask an AI c= hat 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 ma= nual entry pointing people in the right direction, like we have for "d= elete": https://www.php.net/delete

This would IMHO be better suited for a tutorial / learning website, I am no= t 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
Personally, after 15+ years with PHP, I never know which one I need: implode or explode, neither name makes intuitive sense to=20 me and I do an in-ide doc lookup to see if I got the right one every=20 time.=C2=A0

Making a=20 programming language intuitive and self-explanatory in ENGLISH (i.e. not in javascript, not in php), makes it more efficient - and more loved.

I think this alias is defini= tely a worthwhile addition.=C2=A0
--000000000000e329a0063cf2d05a--