function Collection::exists

Tests for the existence of an element that satisfies the given predicate.

Parameters

Closure $p The predicate.:

Return value

boolean TRUE if the predicate is TRUE for at least one element, FALSE otherwise.

1 method overrides Collection::exists()
ArrayCollection::exists in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Tests for the existence of an element that satisfies the given predicate.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 181

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

function exists(Closure $p);