Re: [VOTE] Voting opens for str_starts_with and ends_with functions
| From: | Ben Ramsey | Date: | Mon, 08 Jul 2019 21:52:27 +0000 |
| Subject: | Re: [VOTE] Voting opens for str_starts_with and ends_with functions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106187@lists.php.net to get a copy of this message | ||
> On Jul 8, 2019, at 13:09, Björn Larsson <bjorn.x.larsson@telia.com> wrote:
>
> Having this _ci postfix is a new way of indicating case insensitivity.
> I think that it might add to negative votes. Personally I think it's a
> good idea to mimic existing ways, even if they are a bit awkward.
>
> How about using a flag or following "tradition", like stri_starts_with
> & stri_ends_with or str_istarts_with & str_iends_with? That would
> follow strstr / stristr and str_replace / str_ireplace.
>
> I have no voting rights though.
I made this recommendation earlier in the other thread (<https://externals.io/message/94787#106035>),
but it didn’t get any traction or response:
> maybe the signatures could be revised to pass a third parameter?
>
> str_starts_with($haystack, $needle, $case_sensitive = true): bool
Since voting has already begun, is this something that could still be considered?
-Ben
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc