src/Filter/Sanitize.php
public function addWordDelimiter($delimiter)
    {
        if (in_array($delimiter, $this->getWordDelimiters())) {
            throw new \Exception("Word delimiter '$delimiter' is already there.");
        }
        if (empty($delimiter)) {
            throw new \Exception('Word delimiter cannot be null.');
        }
        if (is_array($delimiter)) {
            $this->_wordDelimiters = array_merge($this->getWordDelimiters(), $delimiter);
        } else {
            $this->_wordDelimiters[] = $delimiter;
        }
        return $this;
    }
public function addWordDelimiter($delimiter)
    {
        if (in_array($delimiter, $this->getWordDelimiters())) {
            throw new \Exception("Word delimiter '$delimiter' is already there.");
        }
        if (empty($delimiter)) {
            throw new \Exception('Word delimiter cannot be null.');
        }
        if (is_array($delimiter)) {
            $this->_wordDelimiters = array_merge($this->getWordDelimiters(), $delimiter);
        } else {
            $this->_wordDelimiters[] = $delimiter;
        }
        return $this;
    }
public function addWordDelimiter ( $ delimiter ) { if ( in_array ( $ delimiter , $ this -> getWordDelimiters ( ) ) ) { throw new \ Exception ( "Word delimiter '$delimiter' is already there." ) ; } if ( empty ( $ delimiter ) ) { throw new \ Exception ( 'Word delimiter cannot be null.' ) ; } if ( is_array ( $ delimiter ) ) { $ this -> _wordDelimiters = array_merge ( $ this -> getWordDelimiters ( ) , $ delimiter ) ; } else { $ this -> _wordDelimiters [ ] = $ delimiter ; } return $ this ; }
Add word delimiter

@param string|array $delimiter
@return Zend_Filter_Sanitize
Add word delimiter