Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94790 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88912 invoked from network); 2 Aug 2016 00:07:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2016 00:07:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:58660] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/70-20009-224EF975 for ; Mon, 01 Aug 2016 20:07:00 -0400 Received: (qmail 17139 invoked by uid 89); 2 Aug 2016 00:06:55 -0000 Received: from unknown (HELO mail-qk0-f179.google.com) (yohgaki@ohgaki.net@209.85.220.179) by 0 with ESMTPA; 2 Aug 2016 00:06:55 -0000 Received: by mail-qk0-f179.google.com with SMTP id p74so160847119qka.0 for ; Mon, 01 Aug 2016 17:06:55 -0700 (PDT) X-Gm-Message-State: AEkooutdQemILsRCR+bOOVmE01Ggjk2D0mjqSPJQIJGZEgnhAOFcU6vd354FNIx/jVKsDQWioLMGXlDthskFbQ== X-Received: by 10.55.146.2 with SMTP id u2mr74540203qkd.20.1470096408671; Mon, 01 Aug 2016 17:06:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Mon, 1 Aug 2016 17:06:08 -0700 (PDT) In-Reply-To: References: <8442f1fa5544b2ca03e7cebbc64e8e5c@wkhudgins.info> Date: Tue, 2 Aug 2016 09:06:08 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Sara Golemon Cc: will@wkhudgins.info, PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC Posted for str_begins and str_ends functions From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Tue, Aug 2, 2016 at 7:56 AM, Sara Golemon wrote: > On Mon, Aug 1, 2016 at 3:52 PM, 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