private function getArrayValue(array $array)
    {
        $value = [];
        foreach ($array as $item) {
            if ($item instanceof Keyword) {
                $item = $this->getKeyword($item);
            }
            $value[] = trim(str_replace(array("\n", "\r"), '', strip_tags('' . $item)));
        }

        array_walk($value, function(&$item) { return trim(str_replace(array("\n", "\r"), '', strip_tags('' . $item))); });

        return implode(',', array_filter($value));
    }
private function getArrayValue(array $array)
    {
        $value = [];
        foreach ($array as $item) {
            if ($item instanceof Keyword) {
                $item = $this->getKeyword($item);
            }
            $value[] = trim(str_replace(array("\n", "\r"), '', strip_tags('' . $item)));
        }

        array_walk($value, function(&$item) { return trim(str_replace(array("\n", "\r"), '', strip_tags('' . $item))); });

        return implode(',', array_filter($value));
    }
private function getArrayValue ( array $ array ) { $ value = [ ] ; foreach ( $ array as $ item ) { if ( $ item instanceof Keyword ) { $ item = $ this -> getKeyword ( $ item ) ; } $ value [ ] = trim ( str_replace ( array ( "\n" , "\r" ) , '' , strip_tags ( '' . $ item ) ) ) ; } array_walk ( $ value , function ( & $ item ) { return trim ( str_replace ( array ( "\n" , "\r" ) , '' , strip_tags ( '' . $ item ) ) ) ; } ) ; return implode ( ',' , array_filter ( $ value ) ) ; }
Returns value for array.

@param  array $array

@return string
Returns value for array .