src/php/lib/class.LinfoCommon.php
// Poor man's python's any() on a list comprehension kinda
Poor man's python's any() on a list comprehension kinda
Poor man ' s python ' s any () on a list comprehension kinda
static function anyInArray($needles, $haystack) {
		if (!is_array($needles) || !is_array($haystack))
			return false;
		return count(array_intersect($needles, $haystack)) > 0;
	}
static function anyInArray ( $ needles , $ haystack ) { if ( ! is_array ( $ needles ) || ! is_array ( $ haystack ) ) return false ; return count ( array_intersect ( $ needles , $ haystack ) ) > 0 ; }
Poor man's python's any() on a list comprehension kinda
Poor man ' s python ' s any () on a list comprehension kinda