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.
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);