public static function contains($needle, $haystack, $caseSensitive = true)
    {
        if (!self::isValid($haystack)) {
            return false;
        }

        list($needle, $haystack) = self::transformCase($needle, $haystack, $caseSensitive);

        return (mb_strpos($haystack, $needle) !== false);
    }
public static function contains($needle, $haystack, $caseSensitive = true)
    {
        if (!self::isValid($haystack)) {
            return false;
        }

        list($needle, $haystack) = self::transformCase($needle, $haystack, $caseSensitive);

        return (mb_strpos($haystack, $needle) !== false);
    }
public static function contains ( $ needle , $ haystack , $ caseSensitive = true ) { if ( ! self :: isValid ( $ haystack ) ) { return false ; } list ( $ needle , $ haystack ) = self :: transformCase ( $ needle , $ haystack , $ caseSensitive ) ; return ( mb_strpos ( $ haystack , $ needle ) !== false ) ; }
Check if string contains another string

@param string $needle String to look for
@param string $haystack String to check
@param bool $caseSensitive Case sensitive check

@return bool
Check if string contains another string