I need to change the php 8.2 to 7.4

Hi and welcome to the forum

In fact str_contains() it doesn’t even exist on v7
so you should stay on v8

maybe this will help you


if that’s your name for function (before it was introduced in php8)
then rename it to something else XYstr_contains() so that it doesn’t conflict



9 Likes