Re: RFC Posted for str_begins and str_ends functions
| From: | Yasuo Ohgaki | Date: | Tue, 02 Aug 2016 00:06:08 +0000 |
| Subject: | Re: RFC Posted for str_begins and str_ends functions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94790@lists.php.net to get a copy of this message | ||
On Tue, Aug 2, 2016 at 7:56 AM, Sara Golemon <pollita@php.net> wrote:
> On Mon, Aug 1, 2016 at 3:52 PM, <will@wkhudgins.info> wrote:
>> I recently emailed the group about submitting an RFC for str_begins() and
>> str_ends() functions. The RFC has now been officially submitted and is
>> viewable at:
>>
>> https://wiki.php.net/rfc/add_str_begin_and_end_functions
>>
> Feeling "meh" on it (neither for nor against), but I would consider
> consistency with other str*() functions by making case-insensitivity
> live in separate functions rather than as a parameter. e.g.
> str_begins(), str_ibegins(), str_ends(), end_iends()
+1 for having functions for case insensitivity.
I'm not sure if we should have "s". i.e. str_begin"s".
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net