Implement strrstr
(and possibly strristr
) for consistency with the strpos
string functions family.
Currently there exist no “proper” counter part to the strstr
(and stristr
) standard string function.
There exist strrchr
however it does not have the same signature as strstr
nor strchr
as strchr
is an alias of strstr
, nor does it provide the same features.
Implement strrstr
and strristr
(?) in PHP 7.4 with the same features as strstr
, meaning that the $needle
parameter can accept multiple characters and add a boolean parameter $before_needle
which has a default value of false
.
None
Next minor i.e. PHP 7.4.
How to handle the newly created alias.
2/3 Majority for adding strrstr
(and possibly strristr
after discussion).
GitHub PR #4064
After the project is implemented, this section should contain
Announcement on internals: https://externals.io/message/105997