On Mon, 8 Jul 2019 at 19:09, Björn Larsson <bjorn.x.lars...@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 would vote yes with that naming. It's a damn silly tradition, but it's
what PHP uses for other functions, and keeping consistency is better than
improving individual functions.

Peter

Reply via email to