Checks whether the given element is contained in the collection. Only element values are compared, not keys. The comparison of two elements is strict, that means not only the value but also the type must match. For objects this means reference equality.
mixed $element:
boolean TRUE if the given element is contained in the collection, FALSE otherwise.
Overrides Collection::contains
public function contains($element) {
foreach ($this->_elements as $collectionElement) {
if ($element === $collectionElement) {
return true;
}
}
return false;
}