public function Collection::exists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php \Doctrine\Common\Collections\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.
2 methods override Collection::exists()
- AbstractLazyCollection::exists in vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php - Tests for the existence of an element that satisfies the given predicate.
- ArrayCollection::exists in vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ ArrayCollection.php - Tests for the existence of an element that satisfies the given predicate.
File
- vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Collection.php, line 196
Class
- Collection
- The missing (SPL) Collection/Array/OrderedMap interface.
Namespace
Doctrine\Common\CollectionsCode
public function exists(Closure $p);