src/Collections/Collection.php
public static function concat(array $array, $separator = ' ')
    {
        $result = '';

        foreach ($array as $string) {
            if (is_string($string)) {
                $result .= $string;
            }
        }

        return $result;
    }
public static function concat(array $array, $separator = ' ')
    {
        $result = '';

        foreach ($array as $string) {
            if (is_string($string)) {
                $result .= $string;
            }
        }

        return $result;
    }
public static function concat ( array $ array , $ separator = ' ' ) { $ result = '' ; foreach ( $ array as $ string ) { if ( is_string ( $ string ) ) { $ result .= $ string ; } } return $ result ; }
Concat string elements in array.

@param array  $array
@param string $separator

@return string
Concat string elements in array .