Issue Task Closed

#97438Favor new string functions over strpos

Larry Garfield 04/20/22, 21:11 updated 10/04/22, 14:04

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.

Reviews 1