public static function any(array $elements, $predicate)
    {
        foreach ($elements as $element) {
            if (Functions::call($predicate, $element)) {
                return true;
            }
        }
        return false;
    }
public static function any(array $elements, $predicate)
    {
        foreach ($elements as $element) {
            if (Functions::call($predicate, $element)) {
                return true;
            }
        }
        return false;
    }
public static function any ( array $ elements , $ predicate ) { foreach ( $ elements as $ element ) { if ( Functions :: call ( $ predicate , $ element ) ) { return true ; } } return false ; }
Returns true if at least one element in the array satisfies the predicate.

Example:
<code>
$array = array('a', true, 'c');
$any = Arrays::any($array, function ($element) {
return is_bool($element);
});
</code>
Result:
<code>
true
</code>

@param array $elements
@param callable $predicate
@return bool
Returns true if at least one element in the array satisfies the predicate .