src/Support/Str.php
/**
	 * Finds the position of a substring in the given string. Returns false if not found.
	 *
	 * @param string $haystack
	 * @param string|array $needles
	 * @return int|bool
	 */
Finds the position of a substring in the given string. Returns false if not found.
@param string $haystack
@param string|array $needles
@return int|bool
Finds the position of a substring in the given string . Returns false if not found . @param string $haystack @param string|array $needles @return int|bool
public static function find($haystack, $needles) {
		foreach ((array)$needles as $needle) {
			$index = mb_strpos($haystack, $needle);
			if ($needle != '' && $index !== false) {
				return $index;
			}
		}
		return false;
	}
public static function find ( $ haystack , $ needles ) { foreach ( ( array ) $ needles as $ needle ) { $ index = mb_strpos ( $ haystack , $ needle ) ; if ( $ needle != '' && $ index !== false ) { return $ index ; } } return false ; }
Finds the position of a substring in the given string.
Finds the position of a substring in the given string .