Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129874 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 67B931A00BC for ; Thu, 22 Jan 2026 18:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769106550; bh=Yb3qFwsTXOF5N98jHuteQbRkiK9jDvtItdp2KqjaiTo=; h=References:In-Reply-To:From:Date:Subject:To:From; b=kV4q0WodogUwqxLZ2jpFOWmDlS3VReoScHfhrMbPVFkRk98mPtxiND83dBT2TLCZI sXXaio7iOCzJ/zbsVoIcjTPMlKq7xLUPCI6KhVV7QhMThSCW/1x2L8z/iEYP58JcmL WNassk+GGreg5d7OCs51ohUn6b47qY76JIhgsN89bYhkBbgTVjB4kZ1YpWciawlS/W KIwAMb/0OHs+wz58/n9jyMoa/oBBYCVicYrsYaMCmrboWW1lVahOyYcnjz8t6E+8lo 7qDWfo3TEbJ9fCdb9moVvj9XtMdT5hGZAghMgb0wEyKyKobN1izPUsRS18tD+IHRyn gg+Msyzj0FeDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5896F18059B for ; Thu, 22 Jan 2026 18:29:10 +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-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.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 ; Thu, 22 Jan 2026 18:29:10 +0000 (UTC) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-47ee4338e01so8307035e9.2 for ; Thu, 22 Jan 2026 10:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769106544; cv=none; d=google.com; s=arc-20240605; b=dt7DHU4BrmuutBEAVLeG7JXyZXbNhjJ4Zz9e6Pa6qRN/ns6MIYVxQVr/YZNelV2GGb ACLceGLyx1Da6FNOSqDLNUCJva0PWxnqnHfud1ch4GqGvldU+Yezqrigj/WN66DjOwX6 wW99uafR1C2TpECPJN9ZYoj8MyYqou4gpm7qZGSoKbJ5JFw+WmIO+nx4curr9of0a1X7 F9ZEY9Z23z5tfq/GMcm0pggf1HA/fUcnJZxWX7eNdyq8Zj02eLIGyS+8mmi3AxCQJgCH ZpG+GoDq1LTNTTVN6DxE06udi0wmWyeYHFEzdi5q9mEKu/wRJw+xl0i1RZLDaou+/ZG+ YsJg== 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=Yb3qFwsTXOF5N98jHuteQbRkiK9jDvtItdp2KqjaiTo=; fh=PwvV1jWZOR90rDIG/6XexqaHJyAFBTdnFVhsS64qdEQ=; b=UY+6n2YKrDHwKSVyCkC7xp+1TZpYrIxEF5UCeZSh7pdiC+Hu+iXx81HL4rj714qnRD zAsDseb9hNmmPZHggmaJmjJSO9IrKlP3O0Si9H7jiLN7IGBFEDWQnIjOo9Z6n2fA+6vo QGMRBIs6OIwZ1enAOFApuNnFDPcOJRSTEcVMLuXDyNJcMjhRnGTWLocR5/HwIqHHHpgI BC04loW6+ws0gli24GzO0AQAwLXqRe/TN+KVtc9OVHo0FTZHHl2c3Pqun8In+I80Gw/0 /zTKABK32zV8rg9D02N+71FIxkOzlLCA4tEDoVtaCDWmzatYFMW3rL7x3UdL/cUlZXy7 3JQg==; 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=1769106544; x=1769711344; 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=Yb3qFwsTXOF5N98jHuteQbRkiK9jDvtItdp2KqjaiTo=; b=QJrIodCkLBXFzanKkCiyU5fulSmzsOxTETMFNH+t4JkPsDI9raWYY39xoc5R5rDAZX LRCuicGXSWeDk/4FM1Q0JQkQtsYNs9c52JOuTX0hKTyXu345VF7DoQsg4t6/dj9/QSjd y9Sy9YB3G46l93Zw04UXO7gG6aA/Op4pTKeLGt/fiMbLm71tybzVfgDq377d7FPL8AXB bgLD7b0oScEGN5qsevR/QnjQJ0iP8W7pY2v/CG/jOfn3sAgPFZJOiH1t8A93PPuWs1dM kXrnMgvgrqgbqD3bCrWsy1wx8S1Pe6z1b2v6uxe18u6aYZ5CHwCBzz44Dc4y4Mf/LgqI mzJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769106544; x=1769711344; 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=Yb3qFwsTXOF5N98jHuteQbRkiK9jDvtItdp2KqjaiTo=; b=HDd6icdMIIFafbQbkbVJdXO3AZeaGdFg6uTPgqNaLg4dDAy+dZZ6L4aX5uI6/9hRn+ t7E5Boy6p4KTEBU5qdxNPDmVaA8MfO+CbmH67Rr/QpVytCe/nm0wOYmT3ue1QFUr3nu6 msFbTdSQ82iZXFT50/I+fqfZfEaA/13R9dvEEMKEOCp/lEKZ2XQhm3TvQrMO7OC1JTrb 1GJWfnRpZ0+eCFeg8xgghmhMgqPBiQAlolI/7PgsBZk6aj5tqE3g1tgmNW8CCquBCiOH Ag+bkLb95Q3n1af5cvgtGXo0kDKhU8sAjC7hNYE4tpqH9D4x6lAG5UlX/hflBTc4NxiE RkmQ== X-Gm-Message-State: AOJu0Yx+5tzJ4uKySjQLqbF8wVGGRaoRqZsTexPzhqqLKZGpHNLhMXMi IaIiX9CDbXy2kaOEYEuzuAfSrrPbhU0B5ml9C5Ix6oXOL1ZzPY0MjCx67HYOWUg9ZlfDDWln/HI fNI81KDH4CW8/uv9MAaZRhRSOVJ6Zg9x2Qz4k X-Gm-Gg: AZuq6aL94cRoxIqz0JjFsbJVxH70HpjOhqwBUbmoLa/09OdxjEV5qWFmxQzgpQ0+5UL Oi+cLVEFXoIsqbBEH7qE7QrXjLgcuFfGAWVNRAH9oND0FsIOEhR3Mb8RLxnDYsT5rI9biAEe8TE YOl1zvT1d/tUH2/XfUAN55hCfQ2e3f9wmNr/B+4CI6hAcJeMvcv6WPdtUtpvn+QjIVZwxEmK/kp +agOuLQWxHzdh3NXccgwvqyfGpD82Wf6Ai9mgwFVvT9vhVJEVaGhY+wpuVBV1yzH5Jk X-Received: by 2002:a05:600c:3b8b:b0:475:dcbb:7903 with SMTP id 5b1f17b1804b1-4804c9589f3mr9876365e9.9.1769106543451; Thu, 22 Jan 2026 10:29:03 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 22 Jan 2026 19:28:52 +0100 X-Gm-Features: AZwV_QiorJNycmIvZxtE7jmaJW5J_LnkmFYGg9p9InUrHlkSinueTjneAyEFRQ4 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Prefix and Suffix Functions To: PHP internals Content-Type: multipart/alternative; boundary="00000000000017a15d0648fe37a6" From: barel.barelon@gmail.com (Barel) --00000000000017a15d0648fe37a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Following a comment by Tim D=C3=BCsterhus (thanks!) and another comment in = the PR, I have inverted the order of the parameters in the ensure and remove functions, so that they follow the parameter order in related functions like str_contains() and str_starts_with() Cheers Carlos On Thu, 22 Jan 2026 at 10:17, Tim D=C3=BCsterhus wrote: > Hi > > Am 2026-01-22 10:10, schrieb Barel: > > I would like to open the discussion on my proposal to add new functions > > to > > process prefixes and suffixes > > > > This is the link to the RFC: > > https://wiki.php.net/rfc/prefix_suffix_functions > > Please don't forget to move it to the correct section in the overview > at: https://wiki.php.net/rfc - and to add a link to the discussion > thread archives to the =E2=80=9CReferences=E2=80=9D section. The =E2=80= =9Cpre-RFC=E2=80=9D thread is > probably also to link there: > https://news-web.php.net/php.internals/129767 > > Best regards > Tim D=C3=BCsterhus > --00000000000017a15d0648fe37a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Following a comment by=C2=A0Tim D=C3=BCsterhus (thanks!) a= nd another comment in the PR, I have inverted the order of the parameters i= n the ensure and remove functions, so that they follow the parameter order = in related functions like str_contains() and str_starts_with()

Cheers

Carlos

On Thu, 22 Jan 2026 = at 10:17, Tim D=C3=BCsterhus <tim@ba= stelstu.be> wrote:
Hi

Am 2026-01-22 10:10, schrieb Barel:
> I would like to open the discussion on my proposal to add new function= s
> to
> process prefixes and suffixes
>
> This is the link to the RFC:
> https://wiki.php.net/rfc/prefix_suffix_function= s

Please don't forget to move it to the correct section in the overview <= br> at: https://wiki.php.net/rfc - and to add a link to the discussion
thread archives to the =E2=80=9CReferences=E2=80=9D section. The =E2=80=9Cp= re-RFC=E2=80=9D thread is
probably also to link there:
https://news-web.php.net/php.internals/129767

Best regards
Tim D=C3=BCsterhus
--00000000000017a15d0648fe37a6--