Re: [RFC] [Discussion] Prefix and Suffix Functions
| From: | Tim Düsterhus | Date: | Sun, 08 Feb 2026 13:55:37 +0000 |
| Subject: | Re: [RFC] [Discussion] Prefix and Suffix Functions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130054@lists.php.net to get a copy of this message | ||
Hi
On 2/7/26 09:21, Barel wrote:
I have added a new section to the RFC explaining the discrepancy about parameter order for the _replace functions. I have also added a new secondary vote to decide this order. Would appreciate it if someone could confirm that this is all OK.For the secondary vote you'll need to define a tie breaker. I assume the ties are broken in favor of
$subject last, since that's what the RFC uses in all examples, but it will need to be clearly stated.
Personally I'm team “I don't think the functions are necessary, but if they are included, they should match str_replace()”.
Best regards
Tim Düsterhus