_posibleSeperators, (string)$value); $this->_cleanEmails($valueArray); return implode($this->_separator, $valueArray); } protected function _cleanEmails(array &$emails) { $result = array(); foreach ($emails as &$value) { $value = trim($value); if ('' != $value) { $result[] = $value; } } $emails = array_unique($result); return $this; } }