Syntax: contains (value)
Determines whether a sequence contains a specified element. Enumeration is terminated as soon as a matching element is found.
public function contains($value) { foreach ($this as $v) { if ($v === $value) { return true; } } return false; }