Req #50434 [Ana->Csd]: add string functions str_startswith and str_endswith for convenience

From: Date: Wed, 15 Jul 2020 04:02:25 +0000
Subject: Req #50434 [Ana->Csd]: add string functions str_startswith and str_endswith for convenience
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228051@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50434&edit=1 ID: 50434 Updated by: carusogabriel@php.net Reported by: mail at daniel-faber dot de Summary: add string functions str_startswith and str_endswith for convenience -Status: Analyzed +Status: Closed Type: Feature/Change Request Package: Strings related PHP Version: 5.2.11 -Assigned To: +Assigned To: carusogabriel Block user comment: N Private report: N New Comment: This was added to PHP 8.0 via https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions. Previous Comments: ------------------------------------------------------------------------ [2018-03-10 13:51:38] cmb@php.net Related To: Bug #67035 ------------------------------------------------------------------------ [2017-09-15 17:16:47] cmb@php.net Related To: Bug #60630 ------------------------------------------------------------------------ [2017-04-16 18:14:50] requinix@php.net Related To: Bug #74449 ------------------------------------------------------------------------ [2016-09-30 10:35:23] cmb@php.net FTR: there is a respective RFC currently under discussion, see <https://wiki.php.net/rfc/add_str_begin_and_end_functions>. ------------------------------------------------------------------------ [2013-05-15 16:22:11] ajf at ajf dot me olafvdspek: Oh, lots of us would like it, but it apparently adds unnecessary bloat so we obviously can't have it, even if it would help code readability and mean people would spend less time reinventing the wheel. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50434 -- Edit this bug report at https://bugs.php.net/bug.php?id=50434&edit=1

« previous php.bugs (#228051) next »