private function _inArray($needle, $haystack) {
		foreach ($haystack as $strand) {
			if (fnmatch($strand, $needle)) {
				return true;
			}
		}
		return false;
	}
private function _inArray($needle, $haystack) {
		foreach ($haystack as $strand) {
			if (fnmatch($strand, $needle)) {
				return true;
			}
		}
		return false;
	}
private function _inArray ( $ needle , $ haystack ) { foreach ( $ haystack as $ strand ) { if ( fnmatch ( $ strand , $ needle ) ) { return true ; } } return false ; }
Checks if a string is in an array, but with wildcards.

@param String $needle
the string to search for
@param Array $haystack
the array to look in
@return boolean
Checks if a string is in an array but with wildcards .