public function join(array $array)
    {
        $function = $this->_function;
        $valuesFunction = $this->_valuesFunction;
        $result = '';
        foreach ($array as $key => $value) {
            if (!$this->_skipNulls || ($this->_skipNulls && $value)) {
                $result .= (
                    $function ? $function($key, $value) :
                        ($valuesFunction ? $valuesFunction($value) : $value)
                    ) . $this->_separator;
            }
        }
        return rtrim($result, $this->_separator);
    }
public function join(array $array)
    {
        $function = $this->_function;
        $valuesFunction = $this->_valuesFunction;
        $result = '';
        foreach ($array as $key => $value) {
            if (!$this->_skipNulls || ($this->_skipNulls && $value)) {
                $result .= (
                    $function ? $function($key, $value) :
                        ($valuesFunction ? $valuesFunction($value) : $value)
                    ) . $this->_separator;
            }
        }
        return rtrim($result, $this->_separator);
    }
public function join ( array $ array ) { $ function = $ this -> _function ; $ valuesFunction = $ this -> _valuesFunction ; $ result = '' ; foreach ( $ array as $ key => $ value ) { if ( ! $ this -> _skipNulls || ( $ this -> _skipNulls && $ value ) ) { $ result .= ( $ function ? $ function ( $ key , $ value ) : ( $ valuesFunction ? $ valuesFunction ( $ value ) : $ value ) ) . $ this -> _separator ; } } return rtrim ( $ result , $ this -> _separator ) ; }
Returns a string containing array elements joined using the previously configured separator.

@param array $array
@return string
Returns a string containing array elements joined using the previously configured separator .