public static function contains($value, string $search, string $encoding = 'UTF-8'): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return mb_strpos((string) $value, $search, 0, $encoding) !== false;
    }
public static function contains($value, string $search, string $encoding = 'UTF-8'): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return mb_strpos((string) $value, $search, 0, $encoding) !== false;
    }
public static function contains ( $ value , string $ search , string $ encoding = 'UTF-8' ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } return mb_strpos ( ( string ) $ value , $ search , 0 , $ encoding ) !== false ; }
Checks if value contains a search string

@param mixed  $value    The value
@param string $search   The search string
@param string $encoding The string encoding

@return bool
Checks if value contains a search string