Re: [RFC] [Discussion] Prefix and Suffix Functions

From: Date: Thu, 22 Jan 2026 18:28:52 +0000
Subject: Re: [RFC] [Discussion] Prefix and Suffix Functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-129874@lists.php.net to get a copy of this message
Following a comment by Tim Düsterhus (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üsterhus <tim@bastelstu.be> 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 “References” section. The “pre-RFC” thread is > probably also to link there: > https://news-web.php.net/php.internals/129767 > > Best regards > Tim Düsterhus >

« previous php.internals (#129874) next »