public function make(array $segments, $delimiter = ' - ', $suffix = '', $prefix = '', $on_empty = '')
    {
        $result = implode($delimiter, $segments);

        if ($this->has()) {

            return $prefix . $result . $suffix;
        } else {

            return $on_empty;
        }
    }
public function make(array $segments, $delimiter = ' - ', $suffix = '', $prefix = '', $on_empty = '')
    {
        $result = implode($delimiter, $segments);

        if ($this->has()) {

            return $prefix . $result . $suffix;
        } else {

            return $on_empty;
        }
    }
public function make ( array $ segments , $ delimiter = ' - ' , $ suffix = '' , $ prefix = '' , $ on_empty = '' ) { $ result = implode ( $ delimiter , $ segments ) ; if ( $ this -> has ( ) ) { return $ prefix . $ result . $ suffix ; } else { return $ on_empty ; } }
Check if any segments added

@param array $segments - array of segment pieces
@param string $delimiter - delimiter for implosion
@param string $suffix - addition to the end
@param string $prefix - addition to beginning
@param string $on_empty - print if segments is empty
@return string
Check if any segments added