Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130045 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 84B2C1A00BC for ; Sat, 7 Feb 2026 00:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1770423093; bh=4kfFIv6G4jWff/hU/q8ubW0p1SfPR8B1bce28rpGEdc=; h=References:In-Reply-To:From:Date:Subject:To:From; b=apmQqGBL/sQjRAwCQB+WctYuR0m9jNUhUDIBNDh/Jetc2nWZ8vErK6ex52pP454gV NMSLrvxn7wVDHLyvL7ffJk1yTOa5PNZM9DQ3rOePeQolcoR3bBzPb0ecMta2P83lvj /0qIywSwr3I64zAAdYPy3cGHRR4zjWZADTqgtmuAZ0kPker/15ya79xS0Py3WPSDpm G4IaywIPCKq0qYSvb/sIkbt1Tl+X9h89NRN0Y4SE56dZczSZoVd3LWbf2iCKHmdnUL n+KhHct9emC0i2zbjgsY7rMWZdKsNntArDVNyAeUgonXIiSlzI/ndTEpH954iQ1vmw Wh23ajhtRiZtQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3BF85180074 for ; Sat, 7 Feb 2026 00:11:32 +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=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,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-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 ; Sat, 7 Feb 2026 00:11:32 +0000 (UTC) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-659428faa2bso1891754a12.0 for ; Fri, 06 Feb 2026 16:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770423085; cv=none; d=google.com; s=arc-20240605; b=dDCeoOc9Wt8C80gVnQiPL5tON2f2Y2QJKIcs9oO8vY7fgifcTAttZ8x1cnRIN3SDuV HLr2Jr3wtJNb2/L89p18Xwg4nrDtwsWqeyLu+iknP4735zDkKAPnV0ySm7m3SjuEb8CN FlOLunKSObRoQPcHQYKultsuRsHRDgkmx8qvLn0sH7whUDqHut4XEe7wDCaDrEEiAqq1 IW3wkeeapD722zT21RYl2sVfW1eq1povDdvZSF13UAwHjqg7pmljMiCr0LL/0p9sjBRQ inwJZfCW78shH6k3zjSLPIDMz52OKth83cw/YJBj3fR+opz3CKs1T0SkN+ykZCDge+ms /l/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0HcYow7zyH1jJ8YSLUrYfdRKPCKUItAyB7xHT5rLDHI=; fh=LsO8Zb/qfr+QGRDKDqG7yqRx5MlxjyNVKSOLXaf9cwc=; b=QNkciZH+lYOrYEs6cURHNYgLXlXAyHZIuBUgpSLTTJyih9opnoqGiaCMDej+9vr+bc wJNGhjiKlHNC3UgN7nnhPpwBCJbbFNTSBnlzZNHw982pYuvdW5M3hg3jYbsHjLyWNUWV 2xqXj2JUiOVq2eiZR2wZhlr+fBlNYzOeISIpFMFGdku3OEa0BtCAq1ge9TX/fd6namKk 13QwUo1eUfc5Zx0Za35K//GrpmUVJZbBxVkEG9zvRCtjqdAuY7n68MwCwmySdhEJTybl SqC9RzJglyBRlrzvpsyMdDvCzD6W6UtmIFRnmVBV1lf3dedFYmqpaz3DtD9A7OZB6QbX p9pg==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770423085; x=1771027885; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=0HcYow7zyH1jJ8YSLUrYfdRKPCKUItAyB7xHT5rLDHI=; b=U1Mzqwu9Sr6r53xNwC1re3zqnLXmYTOAqpFscn3/hQTIixE5lQ9EsAvjH8ydg56vJD SW9RNOo/aWYJqsP8OM3qlrkj/bozwxNuphA4Y2tBb2gm1k3Hfs9lLztuW0lrHAoxPoKq dK6ikoIJS4bcNeUj2U+J399VxD5/OZ5Up3TCYmuHlikyR8X3UT4DmSNbGGnMn/JKFbIf DnLbQMNhIT/R/bkJKAXFaMCd1R7axYYwkNoxtcpbxpV/D9jndEHt5cmjHyjbIhNpNNKb E3Og7udvk7H8f4GmWBCBCYR8RKctjRGQvhR/A6ke0YnJ8xI0QI0z5n9Y3uJjJSz+m0i3 iGMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770423085; x=1771027885; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0HcYow7zyH1jJ8YSLUrYfdRKPCKUItAyB7xHT5rLDHI=; b=sjJA5u8FLt4WuZTOaPKdADydBR5QwwmpFxLNNVkfI16ZQuqLeqvuNCE4Chdyo/O8C3 Ex2zF00rXWgjr4zRxKGrMNxwLazWf5elZJXutFd5F1bi28+uh6kPk8u1EciafK86I7iL do1pHCSJphLO+o4CMjV8+qaRvg491u2NGZLHsuvpIkmggIRd2b6sLeLp4wmDbKOLfRYN oAXbBS4sbAkeu5oQhKOv416oT13ALBZMrnjfoFGRmsxTNHEBHqTWXlw2opThctNFzxFZ vSSdHrPN4Z+8wMWMAulHU9STxTuHjKUaqWVRH2mkl+UphdU3+zvZXB7BIP3a1vxnA0uN RS3w== X-Gm-Message-State: AOJu0YyThPySi1pYYS1OYi7tMn/SvBfsdkHRgLhe7uGwDhGgT0RKrioW 7n6gd9HRxqmPePyNTeo2bhKpbsR2UmiLv9bAXsOVn/5VTTvztoPW+h7WwlQ74kKk/iSOfaUey2x YmP0X4YsQtpJP8D6vZislS9/shs5a7nmHaA== X-Gm-Gg: AZuq6aKikdIplX6zmLmQMvvPV4IhHnQFfO5nohLh6kM6Pzlv2tgg7L3FH9qHuu1wAnV 6hfj8Lg3pYmd5gq+G4ymWSWjvR15Wg1+uRXPerTfu4NNC9Y9KaIzV/V6PzkFrNehiRWeZIoDzh/ 1SjJ8YiMfoxpwt1qZaTI14aNru69hQriKq/Y6KPFml3M4xMOrNct8SkfV8aCxYxu2oCqEGJWaxN w6gvTS3ru1Bk/XwrlLPzXmkQNkOzdLmTPjCI/Q8emOjSvFsF1eP3aZiAMlMpGrahr8e9WnvWSls GEaNA40bPl8wAG4dgZdUIXqYy92O8cLSrkkIaek= X-Received: by 2002:a05:6402:35c3:b0:658:eb6e:523d with SMTP id 4fb4d7f45d1cf-6598415c3a9mr2565621a12.18.1770423085405; Fri, 06 Feb 2026 16:11:25 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <15b6506dc69bd13eceffd36375f83509@bastelstu.be> <20260206233458.6DEF81A00BD@lists.php.net> In-Reply-To: <20260206233458.6DEF81A00BD@lists.php.net> Date: Sat, 7 Feb 2026 10:11:14 +1000 X-Gm-Features: AZwV_QiLAN7wWfVd9Yudpj55U-agamzvjl3qxIsdjJdJdjRxnST2z-rZvHL6jJ4 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Prefix and Suffix Functions To: internals Content-Type: multipart/alternative; boundary="0000000000001b9a88064a30bf08" From: mickmackusa@gmail.com (mickmackusa) --0000000000001b9a88064a30bf08 Content-Type: text/plain; charset="UTF-8" While I am not a voting member of the community, I am unconvinced that there is a sufficient appetite from the PHP community for this new family of string functions. I mean, when I discussed the possibility of array_transpose(), I could list nearly 100 Stack Overflow pages that called for such a function (without all the potential bugs involved with spreading techniques). https://meta.stackoverflow.com/q/417663/2943403 Do you see many calls for your proposed functions in the wild? Are there 5 questions on Stack Overflow where these functions provide a resounding benefit? I've hunted a little and haven't found any, but I might be searching poorly. Are there pre-existing implementations in repos that we can observe? In the absence of real demand, perhaps these should merely be in a userland library. I also agree that the $subject should be the first parameter, like substr_replace(). Mick --0000000000001b9a88064a30bf08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
While I am not a voting member of the community, I am unc= onvinced that there is a sufficient appetite from the PHP community for thi= s new family of string functions.

I mean, when I discussed the possibility of array_transpose(), I could = list nearly 100 Stack Overflow pages that called for such a function (witho= ut all the potential bugs involved with spreading techniques).=C2=A0https://meta.stackover= flow.com/q/417663/2943403

Do you see many calls for your proposed functions in the wild? Are th= ere 5 questions on Stack Overflow where these functions provide a resoundin= g benefit? I've hunted a little and haven't found any, but I might = be searching poorly. Are there pre-existing=C2=A0 implementations in repos = that we can observe?

In = the absence of real demand, perhaps these should merely be in a userland li= brary.

I also agree that= the $subject should be the first parameter, like substr_replace().

Mick
--0000000000001b9a88064a30bf08--