/**
* Checks if a string contains any of the given $char.
* If any of given $char is present, true is returned.
*
* @param array|ArrayObject $needle Array of characters you wish to check
*
* @return bool True if current string contains the $needle. Otherwise false is returned.
*/
public function containsAny($needle)
{
$needle = StdObjectWrapper::toArray($needle);
foreach ($needle as $char) {
if ($this->contains($char)) {
return true;
}
}
return false;
}