On 03.08.2016 at 09:59, Lauri Kenttä wrote: > I only saw you mention strpos, preg_match and substr as (slower) > alternatives. However, there's already a function called substr_compare > which is meant for just this kind of comparisons but which is more > general than your RFC.
Thanks for pointing out substr_compare(), of which I even have not been aware of. And indeed, substr_compare() is perfectly suitable to verify whether a string starts or ends with a certain substring, so, in my opinion, there is no need for the other functions to be added to ext/standard. -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php