Our versions of cPanel do not support PHP 8.0, so we are unable to support this at this time. It's logically equivalent to this except for the case sensitivity:
function str_contains($haystack,$needle)
{
return !empty(stristr($haystack,$needle));
}
EDIT: Not case sensitive like str_contains, but is a boolean return function that checks for presence of a string like it. In all prior versions of PHP, the stristr() method is the standard. Anyone who's used PHP for any length of time likely will know and use that method unless they really need it to be case-sensitive (which in my experience is usually not desired).