#97438Favor new string functions over strpos
Description
PHP 8 gives us the new str_starts_with(), str_ends_with(), and str_contains(), which can replace most strpos() usages. There’s even a CS toggle to favor those. Let’s use it.
PHP 8 gives us the new str_starts_with(), str_ends_with(), and str_contains(), which can replace most strpos() usages. There’s even a CS toggle to favor those. Let’s use it.