protected function explode($commaSeparatedValues)
    {
        if (null === $commaSeparatedValues) {
            return array();
        }

        $array = explode(',', $commaSeparatedValues);

        if (array_walk(
            $array,
            function (&$item) {
            $item = strtoupper(trim($item));
            }
        )) {
            return $array;
        }

        return array();
    }
protected function explode($commaSeparatedValues)
    {
        if (null === $commaSeparatedValues) {
            return array();
        }

        $array = explode(',', $commaSeparatedValues);

        if (array_walk(
            $array,
            function (&$item) {
            $item = strtoupper(trim($item));
            }
        )) {
            return $array;
        }

        return array();
    }
protected function explode ( $ commaSeparatedValues ) { if ( null === $ commaSeparatedValues ) { return array ( ) ; } $ array = explode ( ',' , $ commaSeparatedValues ) ; if ( array_walk ( $ array , function ( & $ item ) { $ item = strtoupper ( trim ( $ item ) ) ; } ) ) { return $ array ; } return array ( ) ; }
Explode a comma separated list in a array, trimming all array elements

@param  mixed  $commaSeparatedValues
@return mixed:
Explode a comma separated list in a array trimming all array elements