Swat/SwatListEntry.php
protected function splitValues($value)
    {
        $delimiter = preg_quote($this->delimiter, '/');

        if ($this->trim_whitespace) {
            $expression = '/\s*' . $delimiter . '\s*/u';
        } else {
            $expression = '/' . $delimiter . '/u';
        }

        return preg_split($expression, $value, -1, PREG_SPLIT_NO_EMPTY);
    }
protected function splitValues($value)
    {
        $delimiter = preg_quote($this->delimiter, '/');

        if ($this->trim_whitespace) {
            $expression = '/\s*' . $delimiter . '\s*/u';
        } else {
            $expression = '/' . $delimiter . '/u';
        }

        return preg_split($expression, $value, -1, PREG_SPLIT_NO_EMPTY);
    }
protected function splitValues ( $ value ) { $ delimiter = preg_quote ( $ this -> delimiter , '/' ) ; if ( $ this -> trim_whitespace ) { $ expression = '/\s*' . $ delimiter . '\s*/u' ; } else { $ expression = '/' . $ delimiter . '/u' ; } return preg_split ( $ expression , $ value , - 1 , PREG_SPLIT_NO_EMPTY ) ; }
Splits a value string with entries separated by delimiters into
an array

If {@link SwatListEntry::$trim_whitespace} is set to true, whitespace
is not included in the split values.

@param string $value the string to split.

@return array the string of delimiter separated values split into an
array of values.
Splits a value string with entries separated by delimiters into an array