> Le 14 fÃ©vr. 2020 Ã 10:17, Philipp Tanlak email@example.com> a Ã©crit :
> Hello PHP Devs,
> I would like to propose the new basic function: str_contains.
> The goal of this proposal is to standardize on a function, to check weather
> or not a string is contained in another string, which has a very common
> use-case in almost every PHP project.
> PHP Frameworks like Laravel create helper functions for this behavior
> because it is so ubiquitous.
Some time ago, an RFC proposing to add str_starts_with() and str_ends_with() was unfortunately declined:
Therefore, unless several people have changed their mind in the right direction since few months ago, I am pessimistic about the acceptance of str_contains().