src/Support/Str.php
/**
	 * Determine if a given string contains a given substring.
	 *
	 * @param string $haystack
	 * @param string|array $needles
	 * @return bool
	 */
Determine if a given string contains a given substring.
@param string $haystack
@param string|array $needles
@return bool
Determine if a given string contains a given substring . @param string $haystack @param string|array $needles @return bool
public static function contains($haystack, $needles) {
		foreach ((array)$needles as $needle) {
			if ($needle != '' && mb_strpos($haystack, $needle) !== false) {
				return true;
			}
		}
		return false;
	}
public static function contains ( $ haystack , $ needles ) { foreach ( ( array ) $ needles as $ needle ) { if ( $ needle != '' && mb_strpos ( $ haystack , $ needle ) !== false ) { return true ; } } return false ; }
Determine if a given string contains a given substring.
Determine if a given string contains a given substring .