public function reverseTransform($string)
    {
        if (null !== $string && !is_string($string)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $string = trim($string);
        if (empty($string)) {
            return array();
        }

        $values = explode($this->delimiter, $string);

        if (0 === count($values)) {
            return array();
        }

        foreach ($values as &$value) {
            $value = trim($value);
        }

        return $values;
    }
public function reverseTransform($string)
    {
        if (null !== $string && !is_string($string)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $string = trim($string);
        if (empty($string)) {
            return array();
        }

        $values = explode($this->delimiter, $string);

        if (0 === count($values)) {
            return array();
        }

        foreach ($values as &$value) {
            $value = trim($value);
        }

        return $values;
    }
public function reverseTransform ( $ string ) { if ( null !== $ string && ! is_string ( $ string ) ) { throw new TransformationFailedException ( 'Expected a string.' ) ; } $ string = trim ( $ string ) ; if ( empty ( $ string ) ) { return array ( ) ; } $ values = explode ( $ this -> delimiter , $ string ) ; if ( 0 === count ( $ values ) ) { return array ( ) ; } foreach ( $ values as & $ value ) { $ value = trim ( $ value ) ; } return $ values ; }
Transforms a delimited string into an array

@param string $string String to transform

@return array

@throws TransformationFailedException If the given value is not a string
Transforms a delimited string into an array