src/Bi/Db.php
function JoinNotEmpty($separator, $array)
    {
        if (!is_array($array)) {
            return '';
        }

        $rv = trim(array_shift($array));

        foreach ($array as $item) {
            $item = $this->Escape(trim($item));
            if ($rv != '' and $item != '') {
                $rv .= $separator;
            }
            $rv .= $item ;
        }
        return $rv;
    }
function JoinNotEmpty($separator, $array)
    {
        if (!is_array($array)) {
            return '';
        }

        $rv = trim(array_shift($array));

        foreach ($array as $item) {
            $item = $this->Escape(trim($item));
            if ($rv != '' and $item != '') {
                $rv .= $separator;
            }
            $rv .= $item ;
        }
        return $rv;
    }
function JoinNotEmpty ( $ separator , $ array ) { if ( ! is_array ( $ array ) ) { return '' ; } $ rv = trim ( array_shift ( $ array ) ) ; foreach ( $ array as $ item ) { $ item = $ this -> Escape ( trim ( $ item ) ) ; if ( $ rv != '' and $ item != '' ) { $ rv .= $ separator ; } $ rv .= $ item ; } return $ rv ; }
same as join, but wont allow empty vals and escapes values for safe use in query

@param string $separator
@param array $array
@return string
same as join but wont allow empty vals and escapes values for safe use in query